Package hec.geometry
Class LogAxisIterator
java.lang.Object
hec.geometry.AxisIterator
hec.geometry.LogAxisIterator
This iterates over a Logarithmic axis, returning the point of each tic mark
- Since:
- September 28, 2000
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoublegetValue()Returns the value of the label for that tic mark at the given positionvoidSets the Iterator to iterate the log minor scalebooleannext()Positions the iterator at the next available tic marcvoidreset()Resets the iterator to an initial state, where it points to the begining of the Axis it iterates overMethods inherited from class hec.geometry.AxisIterator
getInterval, getLocalInterval, getScaledValue, getSigFig, setInterval, setLocalInterval
-
Constructor Details
-
LogAxisIterator
Constructor for the iterator.- Parameters:
ax- A reference to the axis to iterate overdel- The spacing between each tic mark. For the log axis iterator this only works for Major tic marc which are evenly spaced. The minor tic marks are not evenly spaced but rather spaced according to a logarithmic scale.
-
-
Method Details
-
iterateMinorScale
public void iterateMinorScale()Sets the Iterator to iterate the log minor scale- Overrides:
iterateMinorScalein classAxisIterator
-
getValueString
Returns the value of the label for that tic mark at the given position- Overrides:
getValueStringin classAxisIterator
-
next
public boolean next()Positions the iterator at the next available tic marc- Overrides:
nextin classAxisIterator- Returns:
- true if there is a next tic mark. false if we moved passed the end of the axis
-
reset
public void reset()Resets the iterator to an initial state, where it points to the begining of the Axis it iterates over- Overrides:
resetin classAxisIterator
-
getValue
public double getValue()- Overrides:
getValuein classAxisIterator
-
getLocalValue
public int getLocalValue()- Overrides:
getLocalValuein classAxisIterator
-