public class MotionDataSet
extends org.jfree.data.xy.AbstractXYZDataset
implements org.jfree.data.xy.XYZDataset, javax.swing.event.TableModelListener
Modifier and Type | Class and Description |
---|---|
protected class |
MotionDataSet.DateConverter |
protected class |
MotionDataSet.DoubleConverter |
protected static interface |
MotionDataSet.DoubleValue<T> |
protected class |
MotionDataSet.StringConverter |
Modifier and Type | Field and Description |
---|---|
protected static ColorMap |
colorMap |
protected static java.awt.image.ColorModel |
colorModel |
protected MotionKey[] |
keys |
protected java.util.TreeSet[] |
mappingKeys |
protected java.util.HashMap[] |
mappings |
protected MotionTableModel |
mtmodel |
protected static float |
SIZE_MULTIPLIER |
Constructor and Description |
---|
MotionDataSet(MotionTableModel model)
Creates a new MotionDataSet instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
calculateSizeDivisor() |
java.lang.Object |
getCategory(int series,
int item)
Returns the category for the specified item in the series.
|
java.lang.String |
getCategoryLabel()
Returns the category label for the dataset.
|
java.awt.Color |
getColor(int series,
int item)
Returns the color for the specified item in the series.
|
java.lang.String |
getColorLabel()
Returns the color label for the dataset.
|
protected java.lang.Object |
getItem(int series,
int item,
java.lang.Integer col)
Returns the column item for the specified item in the series.
|
int |
getItemCount(int series)
Returns the number of items in a series.
|
int |
getSeriesCount()
Returns the number of series in the dataset.
|
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series.
|
java.lang.Number |
getSize(int series,
int item)
Returns the size for the specified item in the series.
|
java.lang.String |
getSizeLabel()
Returns the size label for the dataset.
|
protected double |
getSizeOffset() |
MotionTableModel |
getTableModel()
Returns the table model for the dataset.
|
java.lang.Number |
getX(int series,
int item)
Returns the x-value for an item within a series.
|
java.lang.String |
getXLabel()
Returns the x-axis label for the dataset.
|
double |
getXValue(int series,
int item)
Returns the x-value (as a double primitive) for an item within a series.
|
java.lang.Number |
getY(int series,
int item)
Returns the y-value for an item within a series.
|
java.lang.String |
getYLabel()
Returns the y-axis label for the dataset.
|
double |
getYValue(int series,
int item)
Returns the y-value (as a double primitive) for an item within a series.
|
java.lang.Number |
getZ(int series,
int item)
Returns the z-value for the specified series and item.
|
java.lang.String |
getZLabel()
Returns the z-axis label for the dataset.
|
double |
getZValue(int series,
int item)
Returns the z-value (as a double primitive) for an item within a series.
|
protected void |
setKeys() |
protected void |
setMappingKeys() |
protected void |
setMappingKeys(int index,
int column) |
protected void |
setStringMapping(int index,
int column) |
void |
tableChanged(javax.swing.event.TableModelEvent e)
This fine grain notification tells listeners the exact range
of cells, rows, or columns that changed.
|
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
protected MotionTableModel mtmodel
protected MotionKey[] keys
protected java.util.TreeSet[] mappingKeys
protected java.util.HashMap[] mappings
protected static final ColorMap colorMap
protected static final java.awt.image.ColorModel colorModel
protected static final float SIZE_MULTIPLIER
public MotionDataSet(MotionTableModel model)
model
- the table model of type MotionTableModelprotected void setKeys()
protected void setMappingKeys()
protected void setMappingKeys(int index, int column)
protected void setStringMapping(int index, int column)
public int getSeriesCount()
getSeriesCount
in interface org.jfree.data.general.SeriesDataset
getSeriesCount
in class org.jfree.data.general.AbstractSeriesDataset
public java.lang.Comparable getSeriesKey(int series)
series
is not within the specified range, the
implementing method should throw an IndexOutOfBoundsException
(preferred) or an IllegalArgumentException
.getSeriesKey
in interface org.jfree.data.general.SeriesDataset
getSeriesKey
in class org.jfree.data.general.AbstractSeriesDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).public int getItemCount(int series)
IllegalArgumentException
if the series
argument is outside the specified range.getItemCount
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).public double getXValue(int series, int item)
getXValue
in interface org.jfree.data.xy.XYDataset
getXValue
in class org.jfree.data.xy.AbstractXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).public double getYValue(int series, int item)
getYValue
in interface org.jfree.data.xy.XYDataset
getYValue
in class org.jfree.data.xy.AbstractXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).public double getZValue(int series, int item)
getZValue
in interface org.jfree.data.xy.XYZDataset
getZValue
in class org.jfree.data.xy.AbstractXYZDataset
series
- the series (zero-based index).item
- the item (zero-based index).public java.lang.Number getX(int series, int item)
getX
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).item
- the item index (in the range 0
to
getItemCount(series)
).null
).public java.lang.Number getY(int series, int item)
getY
in interface org.jfree.data.xy.XYDataset
series
- the series index (in the range 0
to
getSeriesCount() - 1
).item
- the item index (in the range 0
to
getItemCount(series)
).null
).public java.lang.Number getZ(int series, int item)
getZ
in interface org.jfree.data.xy.XYZDataset
series
- the series index (zero-based).item
- the item index (zero-based).null
).public java.lang.Number getSize(int series, int item)
getZ(series, item)
.series
- the series index (zero-based).item
- the item index (zero-based).null
).protected void calculateSizeDivisor()
protected double getSizeOffset()
public java.awt.Color getColor(int series, int item)
series
- the series index (zero-based).item
- the item index (zero-based).null
).public java.lang.Object getCategory(int series, int item)
series
- the series index (zero-based).item
- the item index (zero-based).null
).public java.lang.String getXLabel()
null
).public java.lang.String getYLabel()
null
).public java.lang.String getZLabel()
null
).public java.lang.String getSizeLabel()
getZLabel()
.null
).public java.lang.String getColorLabel()
null
).public java.lang.String getCategoryLabel()
null
).public MotionTableModel getTableModel()
null
).protected java.lang.Object getItem(int series, int item, java.lang.Integer col)
series
- the series index (zero-based).item
- the item index (zero-based).col
- the column index (zero-based).null
).public void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged
in interface javax.swing.event.TableModelListener