public class NiceScale extends Object
| Constructor and Description |
|---|
NiceScale(double min,
double max)
Creates a
NiceScale object for the given minimum and maximum |
| Modifier and Type | Method and Description |
|---|---|
double |
getNiceMax()
Returns the "nice" maximum value
|
double |
getNiceMin()
Returns the "nice" minimum value
|
double |
getTickSpacing()
Returns the spacing between the tick marks
|
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)
NiceScale object for the given minimum and maximummin - the minimum data point on the axismax - the maximum data point on the axispublic double getTickSpacing()
public double getNiceMin()
public double getNiceMax()
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