|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.user.waveform.StepSize
public class StepSize
Class to determine a sensible range of values to display for a given real range. Used by rulers, which want to display properly "gridded" values.
Constructor Summary | |
---|---|
StepSize(double h,
double l,
int n)
Constructor to analyze a range of values and determine sensible displayable values. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public double getLowValue()
public double getHighValue()
public double getSeparation()
public int getStepScale()
public int getRangeScale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |