Class LinePlot
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,ColorProviderHandler
,Serializable
public class LinePlot extends AbstractXYChartGenerator
Generates a line plot by plotting the X column against one or more Y columns.
-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
-x-column <java.lang.String> (property: XColumn) The index of the column which values to use on the X axis; An index is a number starting with 1; apart from column names (case-sensitive), the following placeholders can be used as well: first, second, third, last_2, last_1, last default:
-y-columns <java.lang.String> (property: YColumns) The range of columns to use on the Y axis; A range is a comma-separated list of single 1-based indices or sub-ranges of indices ('start-end'); ' inv(...)' inverts the range '...'; apart from column names (case-sensitive ), the following placeholders can be used as well: first, second, third, last_2, last_1, last default:
-color-provider <adams.gui.visualization.core.AbstractColorProvider> (property: colorProvider) The color provider to use. default: adams.gui.visualization.core.DefaultColorProvider
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractXYChartGenerator
m_ColorProvider, m_XColumn, m_YColumns
-
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 LinePlot()
-
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
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractXYChartGenerator
check, colorProviderTipText, configureGenerator, configureSequencePlotter, defineOptions, getColorProvider, getQuickInfo, getXAxisLabel, getXColumn, getYAxisLabel, getYColumns, initialize, setColorProvider, setXColumn, setYColumns, XColumnTipText, YColumnsTipText
-
Methods inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractRowBasedChartGenerator
getRowFinder, rowFinderTipText, setRowFinder
-
Methods inherited from class adams.gui.tools.spreadsheetviewer.chart.AbstractChartGenerator
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, 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
-
-
-
-
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
-
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:
addChartGeneration
in classAbstractRowBasedChartGenerator
- Parameters:
flow
- the flow to extendname
- the name of the tab/sheetsheet
- the spreadsheet to generate the flow for
-
-