Class TickFactory
java.lang.Object
org.dawnsci.plotting.jreality.tick.TickFactory
Tick factory produces the different axis ticks. When specifying a format and
given the screen size parameters and range it will return a list of Ticks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateTicks(int displaySize, double min, double max, short axisNo, boolean allowMinMaxOver) doubledoubledoublevoidsetTickMode(TickFormatting format) Set the TickFactory to a new formating mode
-
Constructor Details
-
TickFactory
- Parameters:
format-
-
-
Method Details
-
setTickMode
Set the TickFactory to a new formating mode- Parameters:
format- new format to be used
-
getTickUnit
public double getTickUnit()- Returns:
- the size of a tick unit
-
getLabelMin
public double getLabelMin()- Returns:
- the label minimum
-
getLabelMax
public double getLabelMax()- Returns:
- the label maximum
-
generateTicks
public LinkedList<Tick> generateTicks(int displaySize, double min, double max, short axisNo, boolean allowMinMaxOver) - Parameters:
displaySize-min-max-axisNo-allowMinMaxOver- allow min/maximum overwrite- Returns:
- a list of the ticks for the axis
-