org.jCharts.test
Class BarTestDriver

java.lang.Object
  |
  +--org.jCharts.test.AxisChartTestBase
        |
        +--org.jCharts.test.BarTestDriver

public final class BarTestDriver
extends AxisChartTestBase

This file provides examples of how to create all the different chart types provided by this package.


Constructor Summary
BarTestDriver()
           
 
Method Summary
(package private) static void axisChartTest(java.lang.String name, AxisChartTestBase axisChartTestBase)
          Test for LineChart
static void bug()
           
private static void bug2()
           
(package private)  AxisChartDataSet createAxisChartDataSet(ChartType chartType, ChartTypeProperties chartTypeProperties, int numberOfDataSets, int numberOfValuesToCreate, int minValue, int maxValue)
          Generates a random MultiDataSet
(package private)  DataSeries createDataSeries(int numberOfValuesToCreate)
           
(package private) static ChartTypeProperties getChartTypeProperties(int numberOfDataSets)
          Separate this so can use for combo chart test
(package private)  DataSeries getDataSeries()
           
static void main(java.lang.String[] args)
           
(package private)  boolean supportsImageMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarTestDriver

public BarTestDriver()
Method Detail

supportsImageMap

boolean supportsImageMap()
Specified by:
supportsImageMap in class AxisChartTestBase

getChartTypeProperties

static ChartTypeProperties getChartTypeProperties(int numberOfDataSets)
Separate this so can use for combo chart test


getDataSeries

DataSeries getDataSeries()
                   throws ChartDataException
Specified by:
getDataSeries in class AxisChartTestBase
ChartDataException

main

public static void main(java.lang.String[] args)
                 throws PropertyException,
                        ChartDataException
Parameters:
args -
Throws:
PropertyException
ChartDataException

bug

public static void bug()
                throws ChartDataException,
                       PropertyException
ChartDataException
PropertyException

bug2

private static void bug2()

axisChartTest

static void axisChartTest(java.lang.String name,
                          AxisChartTestBase axisChartTestBase)
                   throws ChartDataException,
                          PropertyException
Test for LineChart

ChartDataException
PropertyException

createDataSeries

final DataSeries createDataSeries(int numberOfValuesToCreate)

createAxisChartDataSet

AxisChartDataSet createAxisChartDataSet(ChartType chartType,
                                        ChartTypeProperties chartTypeProperties,
                                        int numberOfDataSets,
                                        int numberOfValuesToCreate,
                                        int minValue,
                                        int maxValue)
                                  throws ChartDataException
Generates a random MultiDataSet

Parameters:
numberOfDataSets -
numberOfValuesToCreate - the number of doubles to generate
minValue -
maxValue -
Returns:
AxisChartDataSet
ChartDataException