Class GenericPlot
- 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.AbstractRowBasedChartGenerator
-
- adams.gui.tools.spreadsheetviewer.chart.GenericPlot
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,ColorProviderHandler,Serializable
public class GenericPlot extends AbstractRowBasedChartGenerator implements ColorProviderHandler
Flexible chart generator.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-width <int> (property: width) The width of the chart dialog. default: 800 minimum: -1
-height <int> (property: height) The height of the chart dialog. default: 600 minimum: -1
-row-finder <adams.data.spreadsheet.rowfinder.RowFinder> (property: rowFinder) The row finder to use for restricting the rows used for the chart. default: adams.data.spreadsheet.rowfinder.ByIndex
-generator <adams.flow.transformer.plotgenerator.AbstractPlotGenerator> (property: generator) The generator for producing the plot containers. default: adams.flow.transformer.plotgenerator.XYPlotGenerator
-paintlet <adams.gui.visualization.sequence.XYSequencePaintlet> (property: paintlet) The paintlet to use for the data. default: adams.gui.visualization.sequence.LinePaintlet
-color-provider <adams.gui.visualization.core.ColorProvider> (property: colorProvider) The color provider to use. default: adams.gui.visualization.core.DefaultColorProvider
-x-tick-generator <adams.gui.visualization.core.axis.TickGenerator> (property: XTickGenerator) The tick generator to use for the X axis. default: adams.gui.visualization.core.axis.SimpleTickGenerator
-y-tick-generator <adams.gui.visualization.core.axis.TickGenerator> (property: YTickGenerator) The tick generator to use for the Y axis. default: adams.gui.visualization.core.axis.SimpleTickGenerator
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ColorProviderm_ColorProviderthe color provider to use.protected AbstractPlotGeneratorm_Generatorthe plot generator to use.protected XYSequencePaintletm_Paintletthe paintlet to use for painting the XY data.protected TickGeneratorm_XTickGeneratorthe tick generator for the X axis.protected TickGeneratorm_YTickGeneratorthe tick generator for the Y axis.-
Fields inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractRowBasedChartGenerator
m_RowFinder
-
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 GenericPlot()
-
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.StringcolorProviderTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.StringgeneratorTipText()Returns the tip text for this property.ColorProvidergetColorProvider()Returns the color provider in use.AbstractPlotGeneratorgetGenerator()Returns the generator for producing the plot containers.XYSequencePaintletgetPaintlet()Returns the paintlet to use.StringgetQuickInfo()Returns a quick info about the actor, which will be displayed in the GUI.TickGeneratorgetXTickGenerator()Returns the tick generator for the X axis.TickGeneratorgetYTickGenerator()Returns the tick generator for the Y axis.StringglobalInfo()Returns a string describing the object.StringpaintletTipText()Returns the tip text for this property.voidsetColorProvider(ColorProvider value)Sets the color provider to use.voidsetGenerator(AbstractPlotGenerator value)Sets the generator for producing the plot containers.voidsetPaintlet(XYSequencePaintlet value)Sets the paintlet to use.voidsetXTickGenerator(TickGenerator value)Sets the tick generator for the X axis.voidsetYTickGenerator(TickGenerator value)Sets the tick generator for the X axis.StringXTickGeneratorTipText()Returns the tip text for this property.StringYTickGeneratorTipText()Returns the tip text for this property.-
Methods inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractRowBasedChartGenerator
getRowFinder, rowFinderTipText, setRowFinder
-
Methods inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractChartGenerator
check, columnTypesToAxisType, columnTypesToTickGenerator, columnTypeToAxisType, columnTypeToTickGenerator, doGenerate, generate, getDefaultHeight, getDefaultWidth, getHeight, 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_Generator
protected AbstractPlotGenerator m_Generator
the plot generator to use.
-
m_Paintlet
protected XYSequencePaintlet m_Paintlet
the paintlet to use for painting the XY data.
-
m_ColorProvider
protected ColorProvider m_ColorProvider
the color provider to use.
-
m_XTickGenerator
protected TickGenerator m_XTickGenerator
the tick generator for the X axis.
-
m_YTickGenerator
protected TickGenerator m_YTickGenerator
the tick generator for the Y axis.
-
-
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 classAbstractRowBasedChartGenerator
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.- Specified by:
getQuickInfoin interfaceQuickInfoSupporter- Overrides:
getQuickInfoin classAbstractChartGenerator- Returns:
- null if no info available, otherwise short string
-
setGenerator
public void setGenerator(AbstractPlotGenerator value)
Sets the generator for producing the plot containers.- Parameters:
value- the generator
-
getGenerator
public AbstractPlotGenerator getGenerator()
Returns the generator for producing the plot containers.- Returns:
- the generator
-
generatorTipText
public String generatorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPaintlet
public void setPaintlet(XYSequencePaintlet value)
Sets the paintlet to use.- Parameters:
value- the paintlet
-
getPaintlet
public XYSequencePaintlet getPaintlet()
Returns the paintlet to use.- Returns:
- the paintlet
-
paintletTipText
public String paintletTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setColorProvider
public void setColorProvider(ColorProvider value)
Sets the color provider to use.- Specified by:
setColorProviderin interfaceColorProviderHandler- Parameters:
value- the color provider
-
getColorProvider
public ColorProvider getColorProvider()
Returns the color provider in use.- Specified by:
getColorProviderin interfaceColorProviderHandler- Returns:
- the color provider
-
colorProviderTipText
public String colorProviderTipText()
Returns the tip text for this property.- Specified by:
colorProviderTipTextin interfaceColorProviderHandler- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setXTickGenerator
public void setXTickGenerator(TickGenerator value)
Sets the tick generator for the X axis.- Parameters:
value- the tick generator
-
getXTickGenerator
public TickGenerator getXTickGenerator()
Returns the tick generator for the X axis.- Returns:
- the tick generator
-
XTickGeneratorTipText
public String XTickGeneratorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setYTickGenerator
public void setYTickGenerator(TickGenerator value)
Sets the tick generator for the X axis.- Parameters:
value- the tick generator
-
getYTickGenerator
public TickGenerator getYTickGenerator()
Returns the tick generator for the Y axis.- Returns:
- the tick generator
-
YTickGeneratorTipText
public String YTickGeneratorTipText()
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.- Overrides:
addChartGenerationin classAbstractRowBasedChartGenerator- Parameters:
flow- the flow to extendname- the name of the tab/sheetsheet- the spreadsheet to generate the flow for
-
-