com.objectplanet.chart.ext
Class ChartDataLoaderExt

java.lang.Object
  extended by com.objectplanet.chart.ChartDataLoader
      extended by com.objectplanet.chart.ext.ChartDataLoaderExt

public class ChartDataLoaderExt
extends ChartDataLoader

This is the class that reads and sets parameters for all extension charts in ChartApplet and ChartServlet.

Author:
Philipp Kolibaba.

Field Summary
protected  GaugeChart gaugeChart
          The gauge charts used.
protected  PlotterChart plotterChart
          The plotter charts used.
 
Fields inherited from class com.objectplanet.chart.ChartDataLoader
barChart, chartType, labelDelimiter, labels, labelURLs, labelURLTargets, lineChart, pieChart, targets, theChart
 
Constructor Summary
ChartDataLoaderExt()
           
 
Method Summary
 void addChartItemListener(ChartApplet chartApplet)
          Adds and item listener to the specified chart.
protected  GenericChart createExtChart(java.lang.String type)
           
 java.awt.Component setChart(java.awt.Component chart)
          Sets the actual chart displayed.
protected  void setImage(java.lang.String name, java.awt.Image image)
          Adds an image to the chart and sets it to be used in a right way
 void setParameter(java.lang.String name, java.lang.String value)
          Sets a parameter in the chart.
 void setParameters(java.util.Hashtable parameters)
          Sets the applet parameters.
 
Methods inherited from class com.objectplanet.chart.ChartDataLoader
convertLineBreaks, createArrayString, createColor, createFont, getBooleanValues, getChart, getChartType, getColorValues, getDoubleValues, getOverlayDataLoader, getStringValues, getStyleValues, init, reset, setChartType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gaugeChart

protected GaugeChart gaugeChart
The gauge charts used.


plotterChart

protected PlotterChart plotterChart
The plotter charts used.

Constructor Detail

ChartDataLoaderExt

public ChartDataLoaderExt()
Method Detail

addChartItemListener

public void addChartItemListener(ChartApplet chartApplet)
Adds and item listener to the specified chart.

Overrides:
addChartItemListener in class ChartDataLoader

createExtChart

protected GenericChart createExtChart(java.lang.String type)
Overrides:
createExtChart in class ChartDataLoader

setChart

public java.awt.Component setChart(java.awt.Component chart)
Sets the actual chart displayed.

Overrides:
setChart in class ChartDataLoader
Returns:
The chart that has been set.

setImage

protected void setImage(java.lang.String name,
                        java.awt.Image image)
Adds an image to the chart and sets it to be used in a right way

Overrides:
setImage in class ChartDataLoader
Parameters:
name - The name of the image
image - The image object itself

setParameter

public void setParameter(java.lang.String name,
                         java.lang.String value)
Sets a parameter in the chart. The parameters set here are the default ones for all the chart types.

Overrides:
setParameter in class ChartDataLoader
Parameters:
name - The name of the parameter.
value - The value of the parameter as a string.

setParameters

public void setParameters(java.util.Hashtable parameters)
Sets the applet parameters. All the parameter keys are assumes to be lower case letter.

Overrides:
setParameters in class ChartDataLoader
Parameters:
parameters - The parameters to be set.