|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.data.AbstractDataset | +--com.jrefinery.data.AbstractSeriesDataset | +--com.jrefinery.chart.demo.SampleXYSymbolicDataset
Random data for a symbolic plot demo.
Constructor Summary | |
SampleXYSymbolicDataset(java.lang.String datasetName,
java.lang.Integer[][] xValues,
java.lang.Integer[][] yValues,
java.lang.String[] xSymbolicValues,
java.lang.String[] ySymbolicValues,
java.lang.String[] seriesName)
Creates a new dataset. |
Method Summary | |
java.lang.Object |
clone()
Clone the SampleXYSymbolicDataset object |
static java.lang.String[] |
combineXSymbolicDataset(XisSymbolic dataset1,
XisSymbolic dataset2)
This function modify dataset1 and dataset1 in
order that they share the same X symbolic value list. |
static java.lang.String[] |
combineYSymbolicDataset(YisSymbolic dataset1,
YisSymbolic dataset2)
This function modify dataset1 and dataset1 in
order that they share the same Y symbolic value list. |
int |
getItemCount(int series)
Returns the number of items in the specified series. |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.String |
getSeriesName(int series)
Returns the name of the series. |
java.lang.String |
getXSymbolicValue(java.lang.Integer val)
Returns the X symbolic value linked with the specified Integer . |
java.lang.String |
getXSymbolicValue(int series,
int item)
Returns the X symbolic value of the data set specified by series and item parameters. |
java.lang.String[] |
getXSymbolicValues()
Returns the list of X symbolic values. |
java.lang.Number |
getXValue(int series,
int item)
Returns the x-value for the specified series and item. |
java.lang.String |
getYSymbolicValue(java.lang.Integer val)
Returns the Y symbolic value linked with the specified Integer . |
java.lang.String |
getYSymbolicValue(int series,
int item)
Returns the Y symbolic value of the data set specified by series and item parameters. |
java.lang.String[] |
getYSymbolicValues()
Returns the list of Y symbolic values. |
java.lang.Number |
getYValue(int series,
int item)
Returns the y-value for the specified series and item. |
void |
setXSymbolicValues(java.lang.String[] sValues)
Sets the list of X symbolic values. |
void |
setXValue(int series,
int item,
java.lang.Number newValue)
Sets the x-value for the specified series and item with the specified new Number value. |
void |
setYSymbolicValues(java.lang.String[] sValues)
Sets the list of Y symbolic values. |
void |
setYValue(int series,
int item,
java.lang.Number newValue)
Sets the y-value for the specified series and item with the specified new Number value. |
Methods inherited from class com.jrefinery.data.AbstractSeriesDataset |
getLegendItemCount, getLegendItemLabels, seriesChanged |
Methods inherited from class com.jrefinery.data.AbstractDataset |
addChangeListener, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jrefinery.data.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
public SampleXYSymbolicDataset(java.lang.String datasetName, java.lang.Integer[][] xValues, java.lang.Integer[][] yValues, java.lang.String[] xSymbolicValues, java.lang.String[] ySymbolicValues, java.lang.String[] seriesName)
datasetName
- the dataset name.xValues
- the x values.yValues
- the y values.xSymbolicValues
- the x symbols.ySymbolicValues
- the y symbols.seriesName
- the series name.Method Detail |
public java.lang.Number getXValue(int series, int item)
getXValue
in interface XYDataset
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.public java.lang.Number getYValue(int series, int item)
getYValue
in interface XYDataset
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.public void setXValue(int series, int item, java.lang.Number newValue)
Number
value. Series are numbered 0, 1, ...
This method is used by combineXSymbolicDataset to modify the reference to the symbolic value ...
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.newValue
- the value to set.public void setYValue(int series, int item, java.lang.Number newValue)
Number
value. Series are numbered 0, 1, ...
This method is used by combineYSymbolicDataset to modify the reference to the symbolic value ...
series
- the index (zero-based) of the series.item
- the index (zero-based) of the required item.newValue
- the value to set.public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public java.lang.String getSeriesName(int series)
getSeriesName
in interface SeriesDataset
getSeriesName
in class AbstractSeriesDataset
series
- the index (zero-based) of the series.public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- the index (zero-based) of the series.public java.lang.String[] getXSymbolicValues()
getXSymbolicValues
in interface XisSymbolic
public java.lang.String[] getYSymbolicValues()
getYSymbolicValues
in interface YisSymbolic
public void setXSymbolicValues(java.lang.String[] sValues)
sValues
- the new list of symbolic value.public void setYSymbolicValues(java.lang.String[] sValues)
sValues
- the new list of symbolic value.public java.lang.String getXSymbolicValue(int series, int item)
series
and item
parameters.getXSymbolicValue
in interface XisSymbolic
series
- value of the serie.item
- value of the item.public java.lang.String getYSymbolicValue(int series, int item)
series
and item
parameters.getYSymbolicValue
in interface YisSymbolic
series
- value of the serie.item
- value of the item.public java.lang.String getXSymbolicValue(java.lang.Integer val)
Integer
.getXSymbolicValue
in interface XisSymbolic
val
- value of the integer linked with the symbolic value.public java.lang.String getYSymbolicValue(java.lang.Integer val)
Integer
.getYSymbolicValue
in interface YisSymbolic
val
- value of the integer linked with the symbolic value.public static java.lang.String[] combineYSymbolicDataset(YisSymbolic dataset1, YisSymbolic dataset2)
dataset1
and dataset1
in
order that they share the same Y symbolic value list.
The sharing Y symbolic value list is obtained adding the Y symbolic data list of the fist data set to the Y symbolic data list of the second data set.
This function is use with the combined plot functions of JFreeChart.
dataset1
- the first data set to combine.dataset2
- the second data set to combine.ClassCastException
- if dataset1
and
dataset2
is not an instance of SampleYSymbolicDataset.public static java.lang.String[] combineXSymbolicDataset(XisSymbolic dataset1, XisSymbolic dataset2)
dataset1
and dataset1
in
order that they share the same X symbolic value list.
The sharing X symbolic value list is obtained adding the X symbolic data list of the fist data set to the X symbolic data list of the second data set.
This function is use with the combined plot functions of JFreeChart.
dataset1
- the first data set to combine.dataset2
- the second data set to combine.ClassCastException
- if dataset1
and
dataset2
is not an instance of SampleYSymbolicDataset.public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |