java.lang.Object
org.jfree.chart3d.axis.NumberTickSelector
- All Implemented Interfaces:
Serializable,TickSelector
A
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
TickSelector implementation that selects tick units in multiples
of 1, 2 and 5.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.NumberTickSelector(boolean percentage) Creates a new instance, with the option to display the tick values as percentages. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests this instance for equality with an arbitrary object.Returns the tick formatter associated with the tick size that the cursor is currently referencing.doubleReturns the tick size that the cursor is currently referencing.booleannext()Move the cursor to the next (larger) tick size, if there is one.booleanprevious()Move the cursor to the previous (smaller) tick size, if there is one.doubleselect(double reference) Selects and returns a standard tick size that is greater than or equal to the specified reference value and, ideally, as close to it as possible (to minimise the number of iterations used by axes to determine the tick size to use).
-
Constructor Details
-
NumberTickSelector
public NumberTickSelector()Creates a new instance. -
NumberTickSelector
Creates a new instance, with the option to display the tick values as percentages. The axis follows the normal convention that values in the range 0.0 to 1.0 a represented as 0% to 100%.- Parameters:
percentage- format the tick values as percentages.
-
-
Method Details
-
select
Selects and returns a standard tick size that is greater than or equal to the specified reference value and, ideally, as close to it as possible (to minimise the number of iterations used by axes to determine the tick size to use). After a call to this method, thegetCurrentTickSize()method should return the selected tick size (there is a "pointer" to this tick size), thenext()method should move the pointer to the next (larger) standard tick size, and theprevious()method should move the pointer to the previous (smaller) standard tick size.- Specified by:
selectin interfaceTickSelector- Parameters:
reference- the reference value (must be positive and finite).- Returns:
- The selected tick size.
-
next
Move the cursor to the next (larger) tick size, if there is one. Returnstruein the case that the cursor is moved, andfalsewhere there are a finite number of tick sizes and the current tick size is the largest available.- Specified by:
nextin interfaceTickSelector- Returns:
- A boolean.
-
previous
Move the cursor to the previous (smaller) tick size, if there is one. Returnstruein the case that the cursor is moved, andfalsewhere there are a finite number of tick sizes and the current tick size is the smallest available.- Specified by:
previousin interfaceTickSelector- Returns:
- A boolean.
-
getCurrentTickSize
Description copied from interface:TickSelectorReturns the tick size that the cursor is currently referencing.- Specified by:
getCurrentTickSizein interfaceTickSelector- Returns:
- The tick size.
-
getCurrentTickLabelFormat
Description copied from interface:TickSelectorReturns the tick formatter associated with the tick size that the cursor is currently referencing.- Specified by:
getCurrentTickLabelFormatin interfaceTickSelector- Returns:
- The formatter.
-
equals
Tests this instance for equality with an arbitrary object.
-