|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jCharts.chartData.StockChartDataSet
Field Summary | |
private ChartType |
chartType
|
private double[] |
close
|
private double[] |
high
|
private java.lang.String[] |
legendLabels
|
private double[] |
low
|
private int |
numberOfDataSets
|
private double[] |
open
|
private java.awt.Paint[] |
paints
|
private StockChartProperties |
stockChartProperties
|
Constructor Summary | |
StockChartDataSet(double[] high,
java.lang.String highLegendLabel,
double[] low,
java.lang.String lowLegendLabel,
java.awt.Paint highLowPaint,
StockChartProperties stockChartProperties)
Constructor |
Method Summary | |
ChartType |
getChartType()
Returns the type constant that this data set should be plotted as. |
ChartTypeProperties |
getChartTypeProperties()
Returns the chart specific properties |
double |
getCloseValue(int index)
|
double |
getHighValue(int index)
|
java.lang.String |
getLegendLabel(int index)
Returns the legend label for the passed index. |
double |
getLowValue(int index)
|
int |
getNumberOfDataItems()
Returns the number of elements in the data set. |
int |
getNumberOfDataSets()
Returns the number of IAxisChartDataSet Objects in this series |
int |
getNumberOfLegendLabels()
Returns the number of Legend Labels to display. |
double |
getOpenValue(int index)
|
java.awt.Paint |
getPaint(int index)
Returns the number of IAxisChartDataSet Objects in this series |
boolean |
hasCloseValues()
|
boolean |
hasOpenValues()
|
void |
setCloseValues(double[] data,
java.lang.String legendLabel,
java.awt.Paint paint)
Sets the 'Close' values |
void |
setOpenValues(double[] data,
java.lang.String legendLabel,
java.awt.Paint paint)
Sets the 'Open' values |
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object. |
void |
validate()
Performs a limited validation of data passed to Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ChartType chartType
private double[] high
private double[] low
private double[] open
private double[] close
private int numberOfDataSets
private java.lang.String[] legendLabels
private java.awt.Paint[] paints
private StockChartProperties stockChartProperties
Constructor Detail |
public StockChartDataSet(double[] high, java.lang.String highLegendLabel, double[] low, java.lang.String lowLegendLabel, java.awt.Paint highLowPaint, StockChartProperties stockChartProperties) throws ChartDataException
high
- highLegendLabel
- low
- lowLegendLabel
- stockChartProperties
- properties Object specific to the type of chart you are rendering.
ChartDataException
- performs a limited validation of the dataMethod Detail |
public void validate() throws ChartDataException, PropertyException
validate
in interface IAxisPlotDataSet
ChartDataException
PropertyException
public java.lang.String getLegendLabel(int index)
getLegendLabel
in interface IDataSet
index
-
public int getNumberOfLegendLabels()
getNumberOfLegendLabels
in interface IDataSet
public int getNumberOfDataItems()
getNumberOfDataItems
in interface IDataSet
public void setCloseValues(double[] data, java.lang.String legendLabel, java.awt.Paint paint)
data
- legendLabel
- paint
- public void setOpenValues(double[] data, java.lang.String legendLabel, java.awt.Paint paint)
data
- legendLabel
- paint
- public double getHighValue(int index)
getHighValue
in interface IStockChartDataSet
index
-
public double getLowValue(int index)
getLowValue
in interface IStockChartDataSet
index
-
public double getCloseValue(int index)
getCloseValue
in interface IStockChartDataSet
index
-
public boolean hasCloseValues()
hasCloseValues
in interface IStockChartDataSet
public double getOpenValue(int index)
getOpenValue
in interface IStockChartDataSet
index
-
public boolean hasOpenValues()
hasOpenValues
in interface IStockChartDataSet
public ChartType getChartType()
getChartType
in interface IStockChartDataSet
ChartType
public ChartTypeProperties getChartTypeProperties()
getChartTypeProperties
in interface IDataSet
public int getNumberOfDataSets()
getNumberOfDataSets
in interface IAxisPlotDataSet
public java.awt.Paint getPaint(int index)
getPaint
in interface IDataSet
index
-
public void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
htmlGenerator
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |