Class NullAxis
- java.lang.Object
-
- org.faceless.graph2.Axis
-
- org.faceless.graph2.NullAxis
-
public class NullAxis extends Axis
A class of Axis which doesn't display any values at all.
-
-
Field Summary
-
Fields inherited from class org.faceless.graph2.Axis
BOTTOM, DENSITY_MINIMAL, DENSITY_NORMAL, DENSITY_SPARSE, LEFT, RIGHT, TOP, ZAXIS
-
-
Constructor Summary
Constructors Constructor Description NullAxis()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(double in)Given the specified number, return the text that should be placed against the tooth at that position.double[]steps(double min, double max)Thestepsmethod controls where the teeth are placed on the spine.-
Methods inherited from class org.faceless.graph2.Axis
setLabel, setMaxValue, setMinValue, setSpineStyle, setToothLength, setToothTextStyle, setWallPaint, setWallPaint, setWallPaint, setZeroIntersection, toString
-
-
-
-
Method Detail
-
format
public String format(double in)
Description copied from class:AxisGiven the specified number, return the text that should be placed against the tooth at that position. For example, an Axis that simply plotted integer values might return
Integer.toString((int)in)Those wanting to create their own custom axis will typically override this method and
Axis.steps(double, double).
-
steps
public double[] steps(double min, double max)Description copied from class:AxisThe
stepsmethod controls where the teeth are placed on the spine. Each subclass of Axis has a different strategy - for instance, theDateAxiswill try and place ticks on the 1st of the month, theNumericAxiswill try and place them evenly across the range and so on.The returned array should consist of a range of numbers, ordered from low to high, which mark the locations of the teeth on the spine.
minandmaxare the minimum and maximum values of the data to plot, and these values will usually be the first and last values in the returned array.Those wanting to create their own custom axis will typically override this method and
Axis.format(double).
-
-