public class StepSize
extends java.lang.Object
Constructor and Description |
---|
StepSize(double h,
double l,
int n)
Constructor to analyze a range of values and determine sensible displayable values.
|
Modifier and Type | Method and Description |
---|---|
double |
getHighValue()
Method to return the high value to display for this range.
|
double |
getLowValue()
Method to return the low value to display for this range.
|
int |
getRangeScale()
Method to return the power of 10 used for this range.
|
double |
getSeparation()
Method to return the separation between ticks in this range.
|
int |
getStepScale()
Method to return the power of 10 used for steps in this range.
|
public StepSize(double h, double l, int n)
h
- the high value in the range.l
- the low value in the range.n
- the number of steps in the range.
This object contains the adjusted values of "l" and "h"
as well as the integers rangeScale and stepScale, which are the
powers of 10 that belong to the largest value in the interval and the step size.public double getLowValue()
public double getHighValue()
public double getSeparation()
public int getStepScale()
public int getRangeScale()