Class DefaultTimeseriesXAxisPanelOptions
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.core.AxisPanelOptions
-
- adams.gui.visualization.timeseries.AbstractTimeseriesXAxisPanelOptions
-
- adams.gui.visualization.timeseries.DefaultTimeseriesXAxisPanelOptions
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,PlotPanelAxisOptions
,TimeseriesXAxisPanelOptions
,Serializable
public class DefaultTimeseriesXAxisPanelOptions extends AbstractTimeseriesXAxisPanelOptions
Encapsulates options for the X axis in a timeseries plot.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-label <java.lang.String> (property: label) The label of the axis. default:
-type <ABSOLUTE|PERCENTAGE|LOG10_ABSOLUTE|LOG10_PERCENTAGE|LOG_ABSOLUTE|LOG_PERCENTAGE|DATE|TIME|DATETIME> (property: type) The type of the axis. default: ABSOLUTE
-hide-grid-lines <boolean> (property: showGridLines) If enabled, grid lines are plotted as well. default: true
-tick-generator <adams.gui.visualization.core.axis.TickGenerator> (property: tickGenerator) Algorithm for generating the tick positions. default: adams.gui.visualization.core.axis.FancyTickGenerator
-nth-value <int> (property: nthValueToShow) The count of ticks a value is shown, i.e., '3' means every third tick: 1, 4, 7, ... default: 5 minimum: 0
-length-ticks <int> (property: lengthTicks) The length in pixels of the ticks to display. default: 4 minimum: 1
-width <int> (property: width) The width/height of the axis (>= 5). default: 20 minimum: 5
-top-margin <double> (property: topMargin) The factor for an extra margin on the top/left (eg 0.05 = 5%). default: 0.0 minimum: 0.0
-bottom-margin <double> (property: bottomMargin) The factor for an extra margin on the bottom/right (eg 0.05 = 5%). default: 0.0 minimum: 0.0
-custom-format <adams.data.DecimalFormatString> (property: customFormat) The custom format for displaying the tick labels on the axis. default:
-periodicity <NONE|YEARLY|QUARTERLY|MONTHLY|WEEKLY|DAILY|HALF_DAILY|HOURLY|HALF_HOURLY|PER_MINUTE> (property: periodicity) The type of periodicity to use for the background. default: NONE
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PeriodicityType
m_Periodicity
the periodicity to use.-
Fields inherited from class adams.gui.visualization.core.AxisPanelOptions
m_BottomMargin, m_CustomFormat, m_Label, m_LengthTicks, m_NthValueToShow, m_ShowGridLines, m_TickGenerator, m_TopMargin, m_Type, m_Width
-
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 DefaultTimeseriesXAxisPanelOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(PlotPanel plot, Axis axis)
Applies the options to the specified axis.void
defineOptions()
Adds options to the internal list of options.PeriodicityType
getPeriodicity()
Returns the type of periodicity to use for the background.String
globalInfo()
Returns a string describing the object.String
periodicityTipText()
Returns the tip text for this property.void
setPeriodicity(PeriodicityType value)
Sets the type of periodicity to use for the background.-
Methods inherited from class adams.gui.visualization.core.AxisPanelOptions
bottomMarginTipText, customFormatTipText, getBottomMargin, getCustomFormat, getLabel, getLengthTicks, getNthValueToShow, getShowGridLines, getTickGenerator, getTopMargin, getType, getWidth, labelTipText, lengthTicksTipText, nthValueToShowTipText, setBottomMargin, setCustomFormat, setLabel, setLengthTicks, setNthValueToShow, setShowGridLines, setTickGenerator, setTopMargin, setType, setWidth, showGridLinesTipText, tickGeneratorTipText, topMarginTipText, typeTipText, 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.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_Periodicity
protected PeriodicityType m_Periodicity
the periodicity to use.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Overrides:
globalInfo
in classAxisPanelOptions
- 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 classAxisPanelOptions
-
setPeriodicity
public void setPeriodicity(PeriodicityType value)
Sets the type of periodicity to use for the background.- Parameters:
value
- the type
-
getPeriodicity
public PeriodicityType getPeriodicity()
Returns the type of periodicity to use for the background.- Returns:
- the type
-
periodicityTipText
public String periodicityTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
configure
public void configure(PlotPanel plot, Axis axis)
Applies the options to the specified axis.- Specified by:
configure
in interfacePlotPanelAxisOptions
- Overrides:
configure
in classAxisPanelOptions
- Parameters:
plot
- the plot panel to update an axis foraxis
- the axis to configure
-
-