de.laures.cewolf.taglib
Class PlotDefinition

java.lang.Object
  extended by de.laures.cewolf.taglib.PlotDefinition
All Implemented Interfaces:
DataAware, java.io.Serializable

public class PlotDefinition
extends java.lang.Object
implements DataAware, java.io.Serializable

(sub) Plot definition for combined/overlaid charts.

Author:
Chris McCann, Guido Laures
See Also:
Serialized Form

Constructor Summary
PlotDefinition()
           
 
Method Summary
 void check(org.jfree.data.general.Dataset data, java.lang.Class clazz, int plotType)
           
 org.jfree.data.general.Dataset getDataset()
           
 org.jfree.chart.plot.Plot getPlot(int chartType)
           
 java.lang.String getType()
          Gets the type.
 java.lang.String getXaxislabel()
          Gets the y-axis label.
 java.lang.String getYaxislabel()
          Sets the x-axis label [tb]
 boolean isXaxisinteger()
          Getter for property xAxisinteger.
 boolean isYaxisinteger()
          Getter for property yAxisInteger.
 void setDataProductionConfig(DatasetProducer dsp, java.util.Map params, boolean useCache)
           
 void setDrawingSupplier(org.jfree.chart.plot.DrawingSupplier drawingSupplier)
          Sets the drawingSupplier.
 void setType(java.lang.String type)
          Sets the type.
 void setXaxisinteger(boolean xAxisInteger)
          Setter for property xAxisinteger.
 void setXaxislabel(java.lang.String xAxisLabel)
          Sets the x-axis label [tb]
 void setYaxisinteger(boolean yAxisInteger)
          Setter for property yAxisinteger.
 void setYaxislabel(java.lang.String yAxisLabel)
          Sets the y-axis label [tb]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotDefinition

public PlotDefinition()
Method Detail

getPlot

public org.jfree.chart.plot.Plot getPlot(int chartType)
                                  throws DatasetProduceException,
                                         ChartValidationException
Throws:
DatasetProduceException
ChartValidationException

getDataset

public org.jfree.data.general.Dataset getDataset()
                                          throws DatasetProduceException
Throws:
DatasetProduceException

getXaxislabel

public java.lang.String getXaxislabel()
Gets the y-axis label. [tb]

Returns:
the y-axis label.

getYaxislabel

public java.lang.String getYaxislabel()
Sets the x-axis label [tb]

Returns:
the x-axis label

setXaxislabel

public void setXaxislabel(java.lang.String xAxisLabel)
Sets the x-axis label [tb]

Parameters:
xAxisLabel - New value of property xAxisLabel.

setYaxislabel

public void setYaxislabel(java.lang.String yAxisLabel)
Sets the y-axis label [tb]

Parameters:
yAxisLabel - New value of property yAxisLabel.

setXaxisinteger

public void setXaxisinteger(boolean xAxisInteger)
Setter for property xAxisinteger.

Parameters:
xAxisInteger - New value of property aAxisInteger.

isXaxisinteger

public boolean isXaxisinteger()
Getter for property xAxisinteger.

Returns:
the xAxisinteger value

setYaxisinteger

public void setYaxisinteger(boolean yAxisInteger)
Setter for property yAxisinteger.

Parameters:
yAxisInteger - New value of property yAxisInteger.

isYaxisinteger

public boolean isYaxisinteger()
Getter for property yAxisInteger.

Returns:
the yAxisInteger value

setType

public void setType(java.lang.String type)
Sets the type.

Parameters:
type - The type to set

getType

public java.lang.String getType()
Gets the type.

Returns:
type of plot as a String

check

public void check(org.jfree.data.general.Dataset data,
                  java.lang.Class clazz,
                  int plotType)
           throws IncompatibleDatasetException
Throws:
IncompatibleDatasetException

setDataProductionConfig

public void setDataProductionConfig(DatasetProducer dsp,
                                    java.util.Map params,
                                    boolean useCache)
Specified by:
setDataProductionConfig in interface DataAware

setDrawingSupplier

public void setDrawingSupplier(org.jfree.chart.plot.DrawingSupplier drawingSupplier)
Sets the drawingSupplier.

Parameters:
drawingSupplier - The drawingSupplier to set


cewolf tag library - web charts with JFreeChart