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 TypeMethodDescriptionvoidvoidFind a nice tic intervalvoidvoidcomputeScaling(double min, double max) computes the scaling based on the min and max values in world coordinatesvoidcomputeScaling(int iview) intComputes an integer value based on the max/min and the current view max/min that represents a position on a scroll barvoidFind a nice tic intervaldoublegetMin()intgetType()voidgrowWorldExtents(double min, double max) booleanisValidMinMax(double min, double max) doublel2w(int l) returns the world value for the given local valuedoublel2wE(double l) returns the world value for the given local valuevoidsetWorldExtents(double min, double max) voidunZoom()voidupdateRatedFunctionScroll(Axis baseAxis, AdjustmentEvent e) intw2l(double w) returns the local value for the given world valuedoublew2lE(double w) returns the local value for the given world valuevoidzoomByFactor(double factor) Change the zoom scaling by the given factor.voidzoomIn(double wmin, double wmax) Zooms based on world coordinatesvoidzoomIn(int imin, int imax) Zooms in based on local coordinatesvoidzoomInUnMod(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, setWorldMinExtentMethods 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:
computeScalingin classAxis
-
computeScaling
public void computeScaling()- Overrides:
computeScalingin 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:
computeScrollPositionin classAxis- Returns:
-
adjustmentValueChanged
- Specified by:
adjustmentValueChangedin interfaceAdjustmentListener- Overrides:
adjustmentValueChangedin classAxis
-
updateRatedFunctionScroll
- Overrides:
updateRatedFunctionScrollin classAxis
-
zoomInUnMod
public void zoomInUnMod(double wmin, double wmax) Zooms based on world coordinates- Overrides:
zoomInUnModin 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:
zoomByFactorin classAxis
-
isValidMinMax
public boolean isValidMinMax(double min, double max) -
setWorldExtents
public void setWorldExtents(double min, double max) - Overrides:
setWorldExtentsin classAxis
-
growWorldExtents
public void growWorldExtents(double min, double max) - Overrides:
growWorldExtentsin classAxis
-
getWorldExtents
- Overrides:
getWorldExtentsin classAxis
-
getMin
public double getMin() -
computeScaling
public void computeScaling(int iview) - Overrides:
computeScalingin 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:AxisFind a nice tic interval- Overrides:
computeNiceMinMaxin classAxis
-
computeTicInterval
public void computeTicInterval()Find a nice tic interval- Overrides:
computeTicIntervalin classAxis
-