Package uk.ac.starlink.ttools.plot2
Interface PrefixTicker.Rule
-
- All Superinterfaces:
BasicTicker.Rule
- Enclosing class:
- PrefixTicker
public static interface PrefixTicker.Rule extends BasicTicker.Rule
Defines a specific rule for generating tick marks with prefixes. It just extends BasicTicker.Rule with a method for generating the prefix. The inheritedindexToLabel(long)
method should provide the suffix part.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
indexToLabel(long index)
Returns the suffix part only for labelling the major tick identified by a given index.java.lang.String
indexToPrefix(long index)
Returns the prefix part only for labelling the major tick identified by a given index.-
Methods inherited from interface uk.ac.starlink.ttools.plot2.BasicTicker.Rule
floorIndex, getMinors, indexToValue
-
-
-
-
Method Detail
-
indexToPrefix
java.lang.String indexToPrefix(long index)
Returns the prefix part only for labelling the major tick identified by a given index.- Parameters:
index
- major tick index- Returns:
- prefix part of label
-
indexToLabel
java.lang.String indexToLabel(long index)
Returns the suffix part only for labelling the major tick identified by a given index.- Specified by:
indexToLabel
in interfaceBasicTicker.Rule
- Parameters:
index
- major tick index- Returns:
- suffix part of label
-
-