Class RangePolicyUnbounded
- java.lang.Object
-
- info.monitorenter.gui.chart.rangepolicies.ARangePolicy
-
- info.monitorenter.gui.chart.rangepolicies.RangePolicyUnbounded
-
- All Implemented Interfaces:
IRangePolicy
,java.io.Serializable
public final class RangePolicyUnbounded extends ARangePolicy
A dummy IRangePolicy implementation that reflects the bounds of the connected Chart2D instance.- Version:
- $Revision: 1.7 $
- Author:
- Achim Westermann
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
m_propertyChangeSupport
-
Fields inherited from interface info.monitorenter.gui.chart.IRangePolicy
PROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN
-
-
Constructor Summary
Constructors Constructor Description RangePolicyUnbounded()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMax(double chartMin, double chartMax)
Define the upper bound of the Chart2D's value range.double
getMin(double chartMin, double chartMax)
Define the lower bound of the Chart2D's value range.-
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener, setRange
-
-
-
-
Constructor Detail
-
RangePolicyUnbounded
public RangePolicyUnbounded()
Creates a range policy with an unconfigured range (Range.RANGE_UNBOUNDED
).
-
RangePolicyUnbounded
public 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.- Parameters:
range
- the range that may be used to decide about the policy of displaying the range.- See Also:
AAxis.setRangePolicy(info.monitorenter.gui.chart.IRangePolicy)
-
-
Method Detail
-
getMax
public double getMax(double chartMin, double chartMax)
Description copied from interface:IRangePolicy
Define the upper bound of the Chart2D's value range. Depends on theAAxis
this 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:
IRangePolicy.getMax(double,double)
-
getMin
public double getMin(double chartMin, double chartMax)
Description copied from interface:IRangePolicy
Define the lower bound of the Chart2D's value range. Depends on theAAxis
this 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:
IRangePolicy.getMin(double, double)
-
-