Class RangePolicyFixedViewport
- java.lang.Object
-
- info.monitorenter.gui.chart.rangepolicies.ARangePolicy
-
- info.monitorenter.gui.chart.rangepolicies.RangePolicyFixedViewport
-
- All Implemented Interfaces:
IRangePolicy
,java.io.Serializable
public final class RangePolicyFixedViewport extends ARangePolicy
A range policy that forces the chart only to display the bounds of the internal range regardless of the actual bounds of the traces within the chart.- Version:
- $Revision: 1.6 $
- 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 RangePolicyFixedViewport()
Creates a range policy with an unconfigured range (Range.RANGE_UNBOUNDED
).RangePolicyFixedViewport(Range range)
Creates a range policy backed by the given range.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMax(double chartMin, double chartMax)
Returns the fixed maximum of the internal range.double
getMin(double chartMin, double chartMax)
Returns the fixed minimum of the internal range.-
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener, setRange
-
-
-
-
Constructor Detail
-
RangePolicyFixedViewport
public RangePolicyFixedViewport()
Creates a range policy with an unconfigured range (Range.RANGE_UNBOUNDED
).
-
RangePolicyFixedViewport
public RangePolicyFixedViewport(Range range)
Creates a range policy backed by the given range.- Parameters:
range
- the range that may be used to decide about the policy of displaying the range.
-
-
Method Detail
-
getMax
public double getMax(double chartMin, double chartMax)
Returns the fixed maximum of the internal range.- Parameters:
chartMax
- ignored.chartMin
- ignored.- Returns:
- the fixed maximum of the internal range.
- See Also:
IRangePolicy.getMax(double, double)
-
getMin
public double getMin(double chartMin, double chartMax)
Returns the fixed minimum of the internal range.- Parameters:
chartMin
- ignored.chartMax
- ignored.- Returns:
- the fixed minimum of the internal range.
- See Also:
IRangePolicy.getMin(double, double)
-
-