|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractXYZDataset edu.ucla.stat.SOCR.motionchart.MotionDataSet
public class MotionDataSet
Package: edu.ucla.stat.SOCR.motionchart User: Khashim Date: Dec 1, 2008 Time: 10:43:13 PM
Nested Class Summary | |
---|---|
protected class |
MotionDataSet.DateConverter
|
protected class |
MotionDataSet.DoubleConverter
|
protected static interface |
MotionDataSet.DoubleValue<T>
|
protected class |
MotionDataSet.StringConverter
|
Field Summary | |
---|---|
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 Summary | |
---|---|
MotionDataSet(MotionTableModel model)
Creates a new MotionDataSet instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public MotionDataSet(MotionTableModel model)
model
- the table model of type MotionTableModelMethod Detail |
---|
protected void setKeys()
protected void setMappingKeys()
protected void setMappingKeys(int index, int column)
protected void setStringMapping(int index, int column)
public int getSeriesCount()
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
.
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.
series
- the series index (in the range 0
to
getSeriesCount() - 1
).
public double getXValue(int series, int item)
series
- the series index (zero-based).item
- the item index (zero-based).
public double getYValue(int series, int item)
series
- the series index (zero-based).item
- the item index (zero-based).
public double getZValue(int series, int item)
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getX(int series, int item)
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)
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)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |