public class LinearAxis extends AbstractAxis
Axis
class with a linear scale.AbstractAxis
grid, label, points
Constructor and Description |
---|
LinearAxis(double range,
double bottom,
int divTicks,
int divGrid)
Creates a new
LinearAxis instance. |
Modifier and Type | Method and Description |
---|---|
double |
getMax()
Returns the maximum value on the axis
|
double |
getMin()
Returns the minimum value on the axis
|
getAxisPoint, getAxisSize, getGridPoint, getGridSize, getLabel, toString
public LinearAxis(double range, double bottom, int divTicks, int divGrid)
LinearAxis
instance.range
- The range of the axis. range
must be
>= 0.0 and should probably be a
power of ten times 1, 2, or 5, i. e. one of ... 0.1, 0.2, 0.5, 1
... 10, 20 ...bottom
- The lowest value of the axis.divTicks
- The number of divisions for the tick marks.
divTicks
must be >= 0. The value 0 means no tick marks.divGrid
- The number of divisions for the grid.
divGrid
must be >= 0. The value 0 means no grid.public double getMin()
getMin
in interface Axis
getMin
in class AbstractAxis
public double getMax()
getMax
in interface Axis
getMax
in class AbstractAxis