Package | Description |
---|---|
de.erichseifert.gral.data |
Data model classes.
|
de.erichseifert.gral.data.filters |
Classes for filtering data sources.
|
de.erichseifert.gral.data.statistics |
Classes for statistical analysis.
|
de.erichseifert.gral.io.data |
Classes for reading and writing data.
|
de.erichseifert.gral.plots |
Plot related classes like axis and plot area management.
|
de.erichseifert.gral.plots.legends |
Classes for rendering different kind of legends.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MutableDataSource
Interface for write access to tabular data.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDataSource
Abstract implementation of the
DataSource interface. |
class |
DataSeries
Class that represents a view on several columns of a
DataSource . |
class |
DataTable
An in-memory, random access implementation of a mutable data source using
arrays to store its values.
|
class |
DummyData
Class that represents a data source containing the same value in each cell.
|
class |
EnumeratedData
Class that creates a new data source which adds a leading column
containing the row number.
|
class |
JdbcData
Data source for database tables accessed through a JDBC connection.
|
class |
RowSubset
Abstract class that represents a view on several rows of a data source.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
DataAccessor.getSource()
Returns the data source containing this column.
|
Modifier and Type | Method and Description |
---|---|
void |
DataSeries.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
EnumeratedData.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
RowSubset.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
DataListener.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
DataSeries.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
EnumeratedData.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
RowSubset.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
DataListener.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
DataSeries.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
void |
EnumeratedData.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
void |
RowSubset.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
void |
DataListener.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
Constructor and Description |
---|
Column(DataSource source,
int col)
Initializes a new instance with the specified data source and column
index.
|
DataAccessor(DataSource source,
int index)
Initializes a new instance with the specified data source and an access
index.
|
DataChangeEvent(DataSource source,
int col,
int row,
Comparable<T> valOld,
Comparable<T> valNew)
Initializes a new event with data source, position of the data value,
and the values.
|
DataSeries(DataSource data,
int... cols)
Constructor without name.
|
DataSeries(String name,
DataSource data,
int... cols)
Constructor that initializes a named data series.
|
DataTable(DataSource source)
Initializes a new instance with the column types, and data of another
data source.
|
EnumeratedData(DataSource original)
Initializes a new data source based on an original data source which
will contain an additional column which enumerates all rows.
|
EnumeratedData(DataSource original,
double offset,
double steps)
Initializes a new data source based on an original data source which
will contain an additional column which enumerates all rows.
|
Row(DataSource source,
int row)
Initializes a new instances with the specified data source and
row index.
|
RowSubset(DataSource original)
Creates a new instance with the specified data source.
|
Modifier and Type | Class and Description |
---|---|
class |
Convolution
Class that applies a specified kernel to a data source to convolve it.
|
class |
Filter
Abstract class that provides basic functions for filtering arbitrary
columns of a DataSource, in other words a set of one-dimensional data.
|
class |
Median
Class that calculates the median of a data sequence.
|
class |
Resize
Filter to change the size of equally spaced data sources.
|
Modifier and Type | Method and Description |
---|---|
protected DataSource |
Filter.getOriginal()
Returns the original data source that is filtered.
|
Modifier and Type | Method and Description |
---|---|
void |
Filter.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
Filter.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
Filter.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
Constructor and Description |
---|
Convolution(DataSource original,
Kernel kernel,
Filter.Mode mode,
int... cols)
Initialized a new instance with the specified data source, convolution
kernel, edge handling mode, and columns to be filtered.
|
Filter(DataSource original,
Filter.Mode mode,
int... cols)
Initializes a new instance with the specified data source, border
handling and columns to be filtered.
|
Median(DataSource original,
int windowSize,
int offset,
Filter.Mode mode,
int... cols)
Creates a new Median object with the specified DataSource, window
size, offset, Mode, and columns.
|
Resize(DataSource data,
int cols,
int rows)
Initializes a new data source from an original data source and a
specified number of rows and columns.
|
Modifier and Type | Class and Description |
---|---|
class |
Histogram
Abstract base class for histograms.
|
class |
Histogram1D
View that aggregates the column values of an other data source into
a histogram with cells.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
Histogram.getData()
Returns the data source associated to this histogram.
|
Modifier and Type | Method and Description |
---|---|
void |
Histogram.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
Statistics.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
Histogram.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
Statistics.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
Histogram.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
void |
Statistics.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
Constructor and Description |
---|
Histogram(DataSource data)
Initializes a new histograms with a data source.
|
Histogram1D(DataSource data,
Orientation orientation,
int breakCount)
Creates a new Histogram object with the specified DataSource and
cell count.
|
Histogram1D(DataSource data,
Orientation orientation,
Number[]... breaks)
Initializes a new histogram with the specified data source and
subdivisions at the specified positions.
|
Statistics(DataSource data)
Initializes a new object with the specified data source.
|
Modifier and Type | Method and Description |
---|---|
DataSource |
CSVReader.read(InputStream input,
Class<? extends Comparable<?>>... types)
Returns a DataSource that was imported.
|
DataSource |
AudioReader.read(InputStream input,
Class<? extends Comparable<?>>... types)
Returns a data source that was imported.
|
DataSource |
DataReader.read(InputStream input,
Class<? extends Comparable<?>>... types)
Returns a data source that contains the imported data.
|
DataSource |
ImageReader.read(InputStream input,
Class<? extends Comparable<?>>... types)
Returns a data source that was imported.
|
Modifier and Type | Method and Description |
---|---|
void |
ImageWriter.write(DataSource data,
OutputStream output)
Stores the specified data source.
|
void |
DataWriter.write(DataSource data,
OutputStream output)
Stores the specified data source.
|
void |
CSVWriter.write(DataSource data,
OutputStream output)
Stores the specified data source.
|
Modifier and Type | Method and Description |
---|---|
static DataSource |
BoxPlot.createBoxData(DataSource data)
Extracts statistics from the columns of an data source that are commonly
used for box-and-whisker plots.
|
static DataSource |
RasterPlot.createRasterData(DataSource data)
Takes a matrix of values and creates a new data source that stores the
values in (x, y, value) format.
|
DataSource |
AbstractPlot.get(int index)
Returns the data series at a specified index.
|
DataSource |
Plot.get(int index)
Returns the data series at a specified index.
|
Modifier and Type | Method and Description |
---|---|
List<DataSource> |
AbstractPlot.getData()
Returns a list of all data series stored in the plot.
|
List<DataSource> |
Plot.getData()
Returns a list of all data series stored in the plot.
|
List<DataSource> |
AbstractPlot.getVisibleData()
Returns a list of all visible data series stored in the plot.
|
List<DataSource> |
Plot.getVisibleData()
Returns a list of all visible data series stored in the plot.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractPlot.add(DataSource source)
Adds a new data series to the plot which is visible by default.
|
void |
Plot.add(DataSource source)
Adds a new data series to the plot which is visible by default.
|
void |
AbstractPlot.add(DataSource source,
boolean visible)
Adds a new data series to the plot.
|
void |
Plot.add(DataSource source,
boolean visible)
Adds a new data series to the plot.
|
void |
BarPlot.add(int index,
DataSource source,
boolean visible) |
void |
PiePlot.add(int index,
DataSource source,
boolean visible) |
void |
BoxPlot.add(int index,
DataSource source,
boolean visible) |
void |
AbstractPlot.add(int index,
DataSource source,
boolean visible)
Inserts the specified data series to the plot at a specified position.
|
void |
XYPlot.add(int index,
DataSource source,
boolean visible) |
void |
RasterPlot.add(int index,
DataSource source,
boolean visible) |
void |
Plot.add(int index,
DataSource source,
boolean visible)
Inserts the specified data series to the plot at a specified position.
|
boolean |
AbstractPlot.contains(DataSource source)
Returns whether the plot contains the specified data series.
|
boolean |
Plot.contains(DataSource source)
Returns whether the plot contains the specified data series.
|
static DataSource |
BoxPlot.createBoxData(DataSource data)
Extracts statistics from the columns of an data source that are commonly
used for box-and-whisker plots.
|
static DataSource |
RasterPlot.createRasterData(DataSource data)
Takes a matrix of values and creates a new data source that stores the
values in (x, y, value) format.
|
void |
AbstractPlot.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
protected void |
PiePlot.dataChanged(DataSource source,
DataChangeEvent... events) |
protected void |
AbstractPlot.dataChanged(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added, updated, or removed.
|
void |
AbstractPlot.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
AbstractPlot.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
AreaRenderer |
XYPlot.getAreaRenderer(DataSource s)
Returns the
AreaRenderer for the specified data source. |
protected Iterable<Row> |
PiePlot.PiePlotLegend.getEntries(DataSource source) |
LineRenderer |
XYPlot.getLineRenderer(DataSource s)
Returns the
LineRenderer for the specified data source. |
String[] |
AbstractPlot.getMapping(DataSource source)
Returns the mapping of data source columns to axis names.
|
String[] |
Plot.getMapping(DataSource source)
Returns the mapping of data source columns to axis names.
|
PointRenderer |
PiePlot.getPointRenderer(DataSource s)
Returns the
PointRenderer for the specified data source. |
PointRenderer |
XYPlot.getPointRenderer(DataSource s)
Returns the
PointRenderer for the specified data source. |
protected PiePlot.Slice |
PiePlot.getSlice(DataSource source,
int index)
Returns the sum of all absolute values from the specified data source up
to the row with the specified index.
|
protected double |
PiePlot.getSum(DataSource source)
Returns the sum of all absolute values in the data column of a specified
data source.
|
boolean |
AbstractPlot.isVisible(DataSource source)
Returns whether the specified data series is drawn.
|
boolean |
Plot.isVisible(DataSource source)
Returns whether the specified data series is drawn.
|
boolean |
AbstractPlot.remove(DataSource source)
Deletes the specified data series from the plot.
|
boolean |
Plot.remove(DataSource source)
Deletes the specified data series from the plot.
|
protected void |
PiePlot.revalidate(DataSource source)
Rebuilds cached information for a specified data source.
|
void |
XYPlot.setAreaRenderer(DataSource s,
AreaRenderer areaRenderer)
Sets the
AreaRenderer for a certain data source to the specified
value. |
void |
XYPlot.setLineRenderer(DataSource s,
LineRenderer lineRenderer)
Sets the
LineRenderer for a certain data source to the specified
value. |
void |
AbstractPlot.setMapping(DataSource source,
String... axisNames)
Sets the mapping of data source columns to axis names.
|
void |
Plot.setMapping(DataSource source,
String... axisNames)
Sets the mapping of data source columns to axis names.
|
void |
PiePlot.setPointRenderer(DataSource s,
PointRenderer pointRenderer)
Sets the
PointRenderer for a certain data source to the
specified value. |
void |
XYPlot.setPointRenderer(DataSource s,
PointRenderer pointRenderer)
Sets the
PointRenderer for a certain data source to the
specified value. |
void |
AbstractPlot.setVisible(DataSource source,
boolean visible)
Changes the visibility of the specified data series.
|
void |
Plot.setVisible(DataSource source,
boolean visible)
Changes the visibility of the specified data series.
|
Constructor and Description |
---|
AbstractPlot(DataSource... series)
Initializes a new
AbstractPlot instance with the specified data series. |
BarPlot(DataSource... data)
Creates a new instance and initializes it with the specified
data sources.
|
BoxPlot(DataSource data)
Initializes a new box-and-whisker plot with the specified data source.
|
PiePlot(DataSource data)
Initializes a new pie plot with the specified data source.
|
RasterPlot(DataSource data)
Initializes a new box-and-whisker plot with the specified data source.
|
XYPlot(DataSource... data)
Initializes a new instance object with the specified data sources and
reasonable default settings.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractLegend.add(DataSource source)
Adds the specified data source in order to display it.
|
void |
ValueLegend.add(DataSource source) |
void |
Legend.add(DataSource source)
Adds the specified data source in order to display it.
|
boolean |
AbstractLegend.contains(DataSource source)
Returns whether the specified data source was added to the legend.
|
boolean |
Legend.contains(DataSource source)
Returns whether the specified data source was added to the legend.
|
void |
ValueLegend.dataAdded(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been added.
|
void |
ValueLegend.dataRemoved(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been removed.
|
void |
ValueLegend.dataUpdated(DataSource source,
DataChangeEvent... events)
Method that is invoked when data has been updated.
|
protected Iterable<Row> |
SeriesLegend.getEntries(DataSource source) |
protected abstract Iterable<Row> |
AbstractLegend.getEntries(DataSource source)
Returns a sequence of items for the specified data source that should be
added to the legend.
|
protected Iterable<Row> |
ValueLegend.getEntries(DataSource source) |
void |
AbstractLegend.remove(DataSource source)
Removes the specified data source.
|
void |
ValueLegend.remove(DataSource source) |
void |
Legend.remove(DataSource source)
Removes the specified data source.
|
Copyright © 2009-2013. All Rights Reserved.