Class RangePolicyUnbounded
java.lang.Object
info.monitorenter.gui.chart.rangepolicies.ARangePolicy
info.monitorenter.gui.chart.rangepolicies.RangePolicyUnbounded
- All Implemented Interfaces:
IRangePolicy,Serializable
A dummy IRangePolicy implementation that reflects the bounds of the connected
Chart2D instance.
- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
- See Also:
-
Field Summary
Fields inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
m_propertyChangeSupportFields inherited from interface info.monitorenter.gui.chart.IRangePolicy
PROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN -
Constructor Summary
ConstructorsConstructorDescriptionCreates a range policy with an unconfigured range (Range.RANGE_UNBOUNDED).RangePolicyUnbounded(Range range) Creates a range policy backed by the given range which is not used forgetMax(double, double)orgetMin(double, double)but stored for later changes of the range policy from outside. -
Method Summary
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener, setRange
-
Constructor Details
-
RangePolicyUnbounded
public RangePolicyUnbounded()Creates a range policy with an unconfigured range (Range.RANGE_UNBOUNDED). -
RangePolicyUnbounded
Creates a range policy backed by the given range which is not used forgetMax(double, double)orgetMin(double, double)but stored for later changes of the range policy from outside.- Parameters:
range- the range that may be used to decide about the policy of displaying the range.- See Also:
-
-
Method Details
-
getMax
public double getMax(double chartMin, double chartMax) Description copied from interface:IRangePolicyDefine the upper bound of the Chart2D's value range. Depends on theAAxisthis instance is bound to.- Parameters:
chartMin- the minimum value of the connected Chart2D that may / should be taken into account.chartMax- the maximum value of the connected Chart2D that may / should be taken into account.- Returns:
- the maximum value (upper bound) for the Chart2D to display.
- See Also:
-
getMin
public double getMin(double chartMin, double chartMax) Description copied from interface:IRangePolicyDefine the lower bound of the Chart2D's value range. Depends on theAAxisthis instance is bound to.- Parameters:
chartMin- the minimum value of the connected Chart2D that may / should be taken into account.chartMax- the maximum value of the connected Chart2D that may / should be taken into account.- Returns:
- the minimum value (lower bound) for the Chart2D to display.
- See Also:
-