|
||||||||||
| 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 data| Method Detail |
public void validate()
throws ChartDataException,
PropertyException
validate in interface IAxisPlotDataSetChartDataException
PropertyExceptionpublic java.lang.String getLegendLabel(int index)
getLegendLabel in interface IDataSetindex -
public int getNumberOfLegendLabels()
getNumberOfLegendLabels in interface IDataSetpublic 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 IStockChartDataSetindex -
public double getLowValue(int index)
getLowValue in interface IStockChartDataSetindex -
public double getCloseValue(int index)
getCloseValue in interface IStockChartDataSetindex -
public boolean hasCloseValues()
hasCloseValues in interface IStockChartDataSetpublic double getOpenValue(int index)
getOpenValue in interface IStockChartDataSetindex -
public boolean hasOpenValues()
hasOpenValues in interface IStockChartDataSetpublic ChartType getChartType()
getChartType in interface IStockChartDataSetChartTypepublic ChartTypeProperties getChartTypeProperties()
getChartTypeProperties in interface IDataSetpublic int getNumberOfDataSets()
getNumberOfDataSets in interface IAxisPlotDataSetpublic java.awt.Paint getPaint(int index)
getPaint in interface IDataSetindex -
public void toHTML(HTMLGenerator htmlGenerator)
toHTML in interface HTMLTestablehtmlGenerator -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||