Package hec.geometry
Class LogAxis
java.lang.Object
java.util.Observable
hec.geometry.Axis
hec.geometry.LogAxis
- All Implemented Interfaces:
AdjustmentListener
,Serializable
,EventListener
This axis represents a logarithmic scale. G2d plots can take advantage of this axis in order to display data on a logarithmic scale
- Since:
- September 28, 2000
- See Also:
-
Field Summary
Fields inherited from class hec.geometry.Axis
_axisProp, CATEGORY, COMPUTED_SCALE, DEBUG, DEFAULT_AXIS_MAX, DEFAULT_AXIS_MIN, LABEL_CHANGE, LINEAR, LOGARITHMIC, m_observerList, NEW_ZOOM, PROBABILITY, SEASONAL, TIME, XAXIS, YAXIS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Find a nice tic intervalvoid
void
computeScaling
(double min, double max) computes the scaling based on the min and max values in world coordinatesvoid
computeScaling
(int iview) int
Computes an integer value based on the max/min and the current view max/min that represents a position on a scroll barvoid
Find a nice tic intervaldouble
getMin()
int
getType()
void
growWorldExtents
(double min, double max) boolean
isValidMinMax
(double min, double max) double
l2w
(int l) returns the world value for the given local valuedouble
l2wE
(double l) returns the world value for the given local valuevoid
setWorldExtents
(double min, double max) void
unZoom()
void
updateRatedFunctionScroll
(Axis baseAxis, AdjustmentEvent e) int
w2l
(double w) returns the local value for the given world valuedouble
w2lE
(double w) returns the local value for the given world valuevoid
zoomByFactor
(double factor) Change the zoom scaling by the given factor.void
zoomIn
(double wmin, double wmax) Zooms based on world coordinatesvoid
zoomIn
(int imin, int imax) Zooms in based on local coordinatesvoid
zoomInUnMod
(double wmin, double wmax) Zooms based on world coordinatesMethods inherited from class hec.geometry.Axis
addObserver, computeAutoViewValues, deleteObserver, deleteObservers, getActMax, getActMin, getAxisProp, getDataMax, getDataMin, getDataUnitSystem, getDisplayUnitsString, getDisplayUnitSystem, getLabel, getMajorTic, getMax, getMinorTic, getName, getNumTicLabelLevels, getObserverList, getOldDisplayUnitSystem, getOrigin, getParameterId, getRatedValue, getRatingFunction, getReversed, getScaledLabel, getScaleMax, getScaleMin, getSigFig, getThousPow, getThousScale, getTicColor, getTicColorString, getTicTextColor, getTicTextColorString, getUnRatedValue, getViewMax, getViewMin, getWorldRange, getZoom, growToGlyphBounds, invalidateWorldExtents, isComputingMajorTics, isComputingMinorTics, isReversed, isUsingAutomaticMaximum, isUsingAutomaticMinimum, isUsingAutomaticViewMaximum, isUsingAutomaticViewMinimum, isUsingDefaultLimits, popLabel, pushLabel, rateAxis, setActualMaximumValue, setActualMinimumValue, setAutomaticMaximumOff, setAutomaticMaximumOn, setAutomaticMinimumOff, setAutomaticMinimumOn, setAutomaticViewMaximumOff, setAutomaticViewMaximumOn, setAutomaticViewMinimumOff, setAutomaticViewMinimumOn, setAxisProp, setComputeMajorTics, setComputeMajorTicsOff, setComputeMajorTicsOn, setComputeMinorTics, setComputeMinorTicsOff, setComputeMinorTicsOn, setDataUnitSystem, setDefaultExtents, setDisplayScaleFactor, setDisplayUnitSystem, setLabel, setMajorTicInterval, setMaximumFactionDigits, setMaximumLimit, setMinimumLimit, setMinMax, setMinorTicInterval, setName, setNumberOfTicLabelLayers, setNumTicLabelLevels, setOrigin, setParameterId, setRatingFunction, setRatingFunction, setReversed, setReversedOff, setReversedOn, setScaleLimits, setTicColor, setTicColor, setTicTextColor, setTicTextColor, setUnit, setUseDefaultLimitsOff, setUseDefaultLimitsOn, setViewLimits, setWorldMinExtent
Methods inherited from class java.util.Observable
clearChanged, countObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
LogAxis
Default Constructor
-
-
Method Details
-
getType
public int getType() -
unZoom
public void unZoom() -
computeScaling
public void computeScaling(double min, double max) computes the scaling based on the min and max values in world coordinates- Overrides:
computeScaling
in classAxis
-
computeScaling
public void computeScaling()- Overrides:
computeScaling
in classAxis
-
computeScrollPosition
public int computeScrollPosition()Computes an integer value based on the max/min and the current view max/min that represents a position on a scroll bar- Overrides:
computeScrollPosition
in classAxis
- Returns:
-
adjustmentValueChanged
- Specified by:
adjustmentValueChanged
in interfaceAdjustmentListener
- Overrides:
adjustmentValueChanged
in classAxis
-
updateRatedFunctionScroll
- Overrides:
updateRatedFunctionScroll
in classAxis
-
zoomInUnMod
public void zoomInUnMod(double wmin, double wmax) Zooms based on world coordinates- Overrides:
zoomInUnMod
in classAxis
-
zoomIn
public void zoomIn(double wmin, double wmax) Zooms based on world coordinates -
zoomIn
public void zoomIn(int imin, int imax) Zooms in based on local coordinates -
zoomByFactor
public void zoomByFactor(double factor) Change the zoom scaling by the given factor.- Overrides:
zoomByFactor
in classAxis
-
isValidMinMax
public boolean isValidMinMax(double min, double max) -
setWorldExtents
public void setWorldExtents(double min, double max) - Overrides:
setWorldExtents
in classAxis
-
growWorldExtents
public void growWorldExtents(double min, double max) - Overrides:
growWorldExtents
in classAxis
-
getWorldExtents
- Overrides:
getWorldExtents
in classAxis
-
getMin
public double getMin() -
computeScaling
public void computeScaling(int iview) - Overrides:
computeScaling
in classAxis
-
w2l
public int w2l(double w) returns the local value for the given world value -
w2lE
public double w2lE(double w) returns the local value for the given world value -
l2w
public double l2w(int l) returns the world value for the given local value -
l2wE
public double l2wE(double l) returns the world value for the given local value -
computeNiceMinMax
public void computeNiceMinMax()Description copied from class:Axis
Find a nice tic interval- Overrides:
computeNiceMinMax
in classAxis
-
computeTicInterval
public void computeTicInterval()Find a nice tic interval- Overrides:
computeTicInterval
in classAxis
-