de.laures.cewolf.taglib
Class PlotDefinition

java.lang.Object
  extended byde.laures.cewolf.taglib.PlotDefinition
All Implemented Interfaces:
DataAware, PlotConstants, java.io.Serializable, TaglibConstants

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

(sub) Plot definition for combined/overlaid charts.

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

Field Summary
 
Fields inherited from interface de.laures.cewolf.taglib.TaglibConstants
ANCHOR_EAST, ANCHOR_NORTH, ANCHOR_SOUTH, ANCHOR_WEST, TOOLTIPS_ENABLED_KEY
 
Fields inherited from interface de.laures.cewolf.taglib.PlotConstants
AREA, CANDLESTICK, HIGH_LOW, LINE, SCATTER, SHAPES_AND_LINES, SIGNAL, STEP, VERTICAL_BAR, XY_AREA, XY_LINE, XY_SHAPES_AND_LINES, XY_VERTICAL_BAR
 
Constructor Summary
PlotDefinition()
           
 
Method Summary
 void check(org.jfree.data.general.Dataset data, java.lang.Class clazz, int plotType)
           
 java.lang.Object 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]
 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 setXaxislabel(java.lang.String xAxisLabel)
          Sets the x-axis label [tb]
 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 java.lang.Object 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.

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


Copyright © {inceptionYear}-2007 null. All Rights Reserved.