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 AbstractChartGeneratorm_Chartthe chart generator.protected AbstractDatasetGeneratorm_Datasetthe dataset generator.protected Colorm_PlotColorthe color for the plot.protected AbstractShapeGeneratorm_Shapethe 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 voidaddChartGeneration(Flow flow, String name, SpreadSheet sheet)Adds the chart generation to the flow.StringchartTipText()Returns the tip text for this property.StringdatasetTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.AbstractChartGeneratorgetChart()Returns the chart generator.AbstractDatasetGeneratorgetDataset()Returns the dataset generator.ColorgetPlotColor()Returns the color for the plot.AbstractShapeGeneratorgetShape()Returns the shape generator.StringglobalInfo()Returns a string describing the object.StringplotColorTipText()Returns the tip text for this property.voidsetChart(AbstractChartGenerator value)Sets the chart generator.voidsetDataset(AbstractDatasetGenerator value)Sets the dataset generator.voidsetPlotColor(Color value)Sets the color for the plot.voidsetShape(AbstractShapeGenerator value)Sets the shape generator.StringshapeTipText()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:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin 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:
addChartGenerationin classAbstractChartGenerator- Parameters:
flow- the flow to extendname- the name of the tab/sheetsheet- the spreadsheet to generate the flow for
-
-