class LineTestDriver extends AxisChartTestBase
Constructor and Description |
---|
LineTestDriver() |
Modifier and Type | Method and Description |
---|---|
(package private) static ChartTypeProperties |
getChartTypeProperties(int numberOfDataSets)
Separate this so can use for combo chart test
|
(package private) DataSeries |
getDataSeries() |
static void |
main(String[] args)
DataSeries getDataSeries() throws ChartDataException
{
String[] xAxisLabels={"1", "2", "3", "4", "5"};
DataSeries dataSeries=new DataSeries( xAxisLabels, "numbers", "numbers", "Bug #559177" );
AxisChartDataSet axisChartDataSet;
double[][] data={{1, 2, 3, 4, 5},
{7, 8, Double.NaN, Double.NaN, Double.NaN},
{Double.NaN, Double.NaN, Double.NaN, Double.NaN, 2}};
String[] legendLabels={"set 1", "set 2", "set 3"};
Paint[] paints={Color.blue, Color.red, Color.green};
axisChartDataSet=new AxisChartDataSet( data,
legendLabels,
paints,
ChartType.LINE,
this.getChartTypeProperties( 3 ) );
dataSeries.addIAxisPlotDataSet( axisChartDataSet );
return dataSeries;
}
|
(package private) boolean |
supportsImageMap() |
axisChartTest, createAxisChartDataSet, createDataSeries
boolean supportsImageMap()
supportsImageMap
in class AxisChartTestBase
static ChartTypeProperties getChartTypeProperties(int numberOfDataSets)
numberOfDataSets
- DataSeries getDataSeries() throws ChartDataException
getDataSeries
in class AxisChartTestBase
ChartDataException
public static void main(String[] args) throws ChartDataException, PropertyException
ChartDataException
PropertyException