Class DefaultXYZ
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.jfreechart.dataset.AbstractDatasetGenerator<org.jfree.data.xy.DefaultXYZDataset>
-
- adams.gui.visualization.jfreechart.dataset.DefaultXYZ
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,Serializable
public class DefaultXYZ extends AbstractDatasetGenerator<org.jfree.data.xy.DefaultXYZDataset>
GeneratesDefaultXYZDatasetdatasets.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SpreadSheetColumnIndexm_Xthe X column.protected SpreadSheetColumnIndexm_Ythe Y column.protected SpreadSheetColumnIndexm_Zthe Z column.-
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 DefaultXYZ()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringcheck(SpreadSheet data)Hook method for checks before generating the dataset.voiddefineOptions()Adds options to the internal list of options.protected org.jfree.data.xy.DefaultXYZDatasetdoAddSeries(org.jfree.data.general.Dataset dataset, SpreadSheet data)Performs the actual addition of the series to the dataset.protected org.jfree.data.xy.DefaultXYZDatasetdoGenerate(SpreadSheet data)Performs the actual generation of the dataset.Class<? extends org.jfree.data.general.Dataset>generates()Returns the class of dataset that it generates.StringgetQuickInfo()Returns a quick info about the actor, which will be displayed in the GUI.SpreadSheetColumnIndexgetX()Returns the index of the column to act as X axis.SpreadSheetColumnIndexgetY()Returns the index of column to use as Y.SpreadSheetColumnIndexgetZ()Returns the index of column to use as Z.StringglobalInfo()Returns a string describing the object.voidsetX(SpreadSheetColumnIndex value)Sets the index of the column to act as X axis.voidsetY(SpreadSheetColumnIndex value)Sets the index of column to use as Y.voidsetZ(SpreadSheetColumnIndex value)Sets the index of column to use as Z.StringXTipText()Returns the tip text for this property.StringYTipText()Returns the tip text for this property.StringZTipText()Returns the tip text for this property.-
Methods inherited from class adams.gui.visualization.jfreechart.dataset.AbstractDatasetGenerator
addSeries, checkAddSeries, generate
-
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_X
protected SpreadSheetColumnIndex m_X
the X column.
-
m_Y
protected SpreadSheetColumnIndex m_Y
the Y column.
-
m_Z
protected SpreadSheetColumnIndex m_Z
the Z column.
-
-
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 classAbstractOptionHandler
-
setX
public void setX(SpreadSheetColumnIndex value)
Sets the index of the column to act as X axis.- Parameters:
value- the index
-
getX
public SpreadSheetColumnIndex getX()
Returns the index of the column to act as X axis.- Returns:
- the index
-
XTipText
public String XTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setY
public void setY(SpreadSheetColumnIndex value)
Sets the index of column to use as Y.- Parameters:
value- the index
-
getY
public SpreadSheetColumnIndex getY()
Returns the index of column to use as Y.- Returns:
- the index
-
YTipText
public String YTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setZ
public void setZ(SpreadSheetColumnIndex value)
Sets the index of column to use as Z.- Parameters:
value- the index
-
getZ
public SpreadSheetColumnIndex getZ()
Returns the index of column to use as Z.- Returns:
- the index
-
ZTipText
public String ZTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.- Specified by:
getQuickInfoin interfaceQuickInfoSupporter- Overrides:
getQuickInfoin classAbstractDatasetGenerator<org.jfree.data.xy.DefaultXYZDataset>- Returns:
- null if no info available, otherwise short string
-
generates
public Class<? extends org.jfree.data.general.Dataset> generates()
Returns the class of dataset that it generates.- Specified by:
generatesin classAbstractDatasetGenerator<org.jfree.data.xy.DefaultXYZDataset>- Returns:
- the dataset class
-
check
protected String check(SpreadSheet data)
Hook method for checks before generating the dataset.- Overrides:
checkin classAbstractDatasetGenerator<org.jfree.data.xy.DefaultXYZDataset>- Parameters:
data- the data to use- Returns:
- null if checks passed, otherwise error message
-
doGenerate
protected org.jfree.data.xy.DefaultXYZDataset doGenerate(SpreadSheet data)
Performs the actual generation of the dataset.- Specified by:
doGeneratein classAbstractDatasetGenerator<org.jfree.data.xy.DefaultXYZDataset>- Parameters:
data- the data to use- Returns:
- the dataset
-
doAddSeries
protected org.jfree.data.xy.DefaultXYZDataset doAddSeries(org.jfree.data.general.Dataset dataset, SpreadSheet data)Performs the actual addition of the series to the dataset.- Specified by:
doAddSeriesin classAbstractDatasetGenerator<org.jfree.data.xy.DefaultXYZDataset>- Parameters:
dataset- the dataset to add the series todata- the data to use- Returns:
- the dataset
-
-