public class NiceScale
extends java.lang.Object
Constructor and Description |
---|
NiceScale(double min,
double max)
Instantiates a new instance of the NiceScale class.
|
Modifier and Type | Method and Description |
---|---|
double |
getTickSpacing() |
void |
setMaxTicks(double maxTicks)
Sets maximum number of tick marks we're comfortable with
|
void |
setMinMaxPoints(double minPoint,
double maxPoint)
Sets the minimum and maximum data points for the axis.
|
public NiceScale(double min, double max)
min
- the minimum data point on the axismax
- the maximum data point on the axispublic double getTickSpacing()
public void setMinMaxPoints(double minPoint, double maxPoint)
minPoint
- the minimum data point on the axismaxPoint
- the maximum data point on the axispublic void setMaxTicks(double maxTicks)
maxTicks
- the maximum number of tick marks for the axis