Class AbstractLimitedTickGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.core.axis.AbstractTickGenerator
-
- adams.gui.visualization.core.axis.AbstractLimitedTickGenerator
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<TickGenerator>
,SizeOfHandler
,TickGenerator
,Serializable
- Direct Known Subclasses:
FancyTickGenerator
,SimpleTickGenerator
public abstract class AbstractLimitedTickGenerator extends AbstractTickGenerator
Ancestor for tick generators that only generate a limited number of ticks.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_NumTicks
the number of ticks to display.-
Fields inherited from class adams.gui.visualization.core.axis.AbstractTickGenerator
m_Labels, m_Parent, m_Ticks
-
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 AbstractLimitedTickGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected int
getDefaultNumTicks()
Return the default number of ticks to generate.protected int
getMinNumTicks()
Return the minimum number of ticks to generate.int
getNumTicks()
Returns the number of ticks currently displayed.String
numTicksTipText()
Returns the tip text for this property.void
setNumTicks(int value)
Sets the number of ticks to display along the axis.-
Methods inherited from class adams.gui.visualization.core.axis.AbstractTickGenerator
addLabel, doGenerate, fixLabel, forCommandLine, forName, getGenerators, getParent, getTicks, hasLabel, initialize, postGenerate, preGenerate, reset, setParent, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, 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
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
getDefaultNumTicks
protected int getDefaultNumTicks()
Return the default number of ticks to generate.- Returns:
- the default number
-
getMinNumTicks
protected int getMinNumTicks()
Return the minimum number of ticks to generate.- Returns:
- the minimum
-
setNumTicks
public void setNumTicks(int value)
Sets the number of ticks to display along the axis.- Parameters:
value
- the number of ticks
-
getNumTicks
public int getNumTicks()
Returns the number of ticks currently displayed.- Returns:
- the number of ticks
-
numTicksTipText
public String numTicksTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
-