Class JFreeChart
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.tools.spreadsheetviewer.chart.AbstractChartGenerator
-
- adams.gui.tools.spreadsheetviewer.chart.JFreeChart
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,Serializable
public class JFreeChart extends AbstractChartGenerator
Uses JFreeChart to display the data.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractChartGenerator
m_Chart
the chart generator.protected AbstractDatasetGenerator
m_Dataset
the dataset generator.protected Color
m_PlotColor
the color for the plot.protected AbstractShapeGenerator
m_Shape
the shape generator.-
Fields inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractChartGenerator
m_Height, m_Width, STORAGE_NAME
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description JFreeChart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addChartGeneration(Flow flow, String name, SpreadSheet sheet)
Adds the chart generation to the flow.String
chartTipText()
Returns the tip text for this property.String
datasetTipText()
Returns the tip text for this property.void
defineOptions()
Adds options to the internal list of options.AbstractChartGenerator
getChart()
Returns the chart generator.AbstractDatasetGenerator
getDataset()
Returns the dataset generator.Color
getPlotColor()
Returns the color for the plot.AbstractShapeGenerator
getShape()
Returns the shape generator.String
globalInfo()
Returns a string describing the object.String
plotColorTipText()
Returns the tip text for this property.void
setChart(AbstractChartGenerator value)
Sets the chart generator.void
setDataset(AbstractDatasetGenerator value)
Sets the dataset generator.void
setPlotColor(Color value)
Sets the color for the plot.void
setShape(AbstractShapeGenerator value)
Sets the shape generator.String
shapeTipText()
Returns the tip text for this property.-
Methods inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractChartGenerator
check, columnTypesToAxisType, columnTypesToTickGenerator, columnTypeToAxisType, columnTypeToTickGenerator, doGenerate, generate, getDefaultHeight, getDefaultWidth, getHeight, getQuickInfo, getWidth, heightTipText, setHeight, setWidth, widthTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Dataset
protected AbstractDatasetGenerator m_Dataset
the dataset generator.
-
m_Chart
protected AbstractChartGenerator m_Chart
the chart generator.
-
m_Shape
protected AbstractShapeGenerator m_Shape
the shape generator.
-
m_PlotColor
protected Color m_PlotColor
the color for the plot.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractChartGenerator
-
setDataset
public void setDataset(AbstractDatasetGenerator value)
Sets the dataset generator.- Parameters:
value
- the generator
-
getDataset
public AbstractDatasetGenerator getDataset()
Returns the dataset generator.- Returns:
- the generator
-
datasetTipText
public String datasetTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setChart
public void setChart(AbstractChartGenerator value)
Sets the chart generator.- Parameters:
value
- the generator
-
getChart
public AbstractChartGenerator getChart()
Returns the chart generator.- Returns:
- the generator
-
chartTipText
public String chartTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setShape
public void setShape(AbstractShapeGenerator value)
Sets the shape generator.- Parameters:
value
- the generator
-
getShape
public AbstractShapeGenerator getShape()
Returns the shape generator.- Returns:
- the generator
-
shapeTipText
public String shapeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPlotColor
public void setPlotColor(Color value)
Sets the color for the plot.- Parameters:
value
- the color
-
getPlotColor
public Color getPlotColor()
Returns the color for the plot.- Returns:
- the color
-
plotColorTipText
public String plotColorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
addChartGeneration
protected void addChartGeneration(Flow flow, String name, SpreadSheet sheet)
Adds the chart generation to the flow. The flow already contains forwarding of spreadsheet and selecting subset of rows.- Specified by:
addChartGeneration
in classAbstractChartGenerator
- Parameters:
flow
- the flow to extendname
- the name of the tab/sheetsheet
- the spreadsheet to generate the flow for
-
-