Class FancyTickGenerator
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<TickGenerator>
,SizeOfHandler
,TickGenerator
,Serializable
public class FancyTickGenerator extends AbstractLimitedTickGenerator
A fancy tick generator based on code from the flotcharts project.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.visualization.core.axis.AbstractLimitedTickGenerator
m_NumTicks
-
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 FancyTickGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGenerate()
Generate the ticks of this axis.protected double
floorInBase(double n, double base)
Round to nearby lower multiple of base.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.gui.visualization.core.axis.AbstractLimitedTickGenerator
defineOptions, getDefaultNumTicks, getMinNumTicks, getNumTicks, numTicksTipText, setNumTicks
-
Methods inherited from class adams.gui.visualization.core.axis.AbstractTickGenerator
addLabel, 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, 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
-
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
-
floorInBase
protected double floorInBase(double n, double base)
Round to nearby lower multiple of base.- Parameters:
n
- the numberbase
- the base to use- Returns:
- the result
-
doGenerate
protected void doGenerate()
Generate the ticks of this axis.- Specified by:
doGenerate
in classAbstractTickGenerator
-
-