Package hec.geometry
Class AxisIterator
java.lang.Object
hec.geometry.AxisIterator
- Direct Known Subclasses:
LogAxisIterator
,ProbabilityAxisIterator
,TSAxisIterator
An iterator class for stepping across an axis at a fixed interval.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the interval value i.e.int
int
double
int
double
getValue()
void
boolean
next()
moves iterator to next positionvoid
reset()
resets iterator to beginning of rangevoid
setInterval
(double del) void
setLocalInterval
(int del) Set the interval to use in local coordinates
-
Constructor Details
-
AxisIterator
Constructor
-
-
Method Details
-
iterateMinorScale
public void iterateMinorScale() -
reset
public void reset()resets iterator to beginning of range -
getSigFig
public int getSigFig() -
getInterval
public double getInterval()Returns the interval value i.e. the distance between tick marks.- Returns:
-
setInterval
public void setInterval(double del) -
setLocalInterval
public void setLocalInterval(int del) Set the interval to use in local coordinates -
next
public boolean next()moves iterator to next position -
getValue
public double getValue() -
getScaledValue
public double getScaledValue() -
getLocalValue
public int getLocalValue() -
getLocalInterval
public int getLocalInterval() -
getValueString
-