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 TypeMethodDescriptiondoubleReturns the interval value i.e.intintdoubleintdoublegetValue()voidbooleannext()moves iterator to next positionvoidreset()resets iterator to beginning of rangevoidsetInterval(double del) voidsetLocalInterval(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
-