Class RangePolicyForcedPoint
- java.lang.Object
-
- info.monitorenter.gui.chart.rangepolicies.ARangePolicy
-
- info.monitorenter.gui.chart.rangepolicies.RangePolicyMinimumViewport
-
- info.monitorenter.gui.chart.rangepolicies.RangePolicyForcedPoint
-
- All Implemented Interfaces:
IRangePolicy
,java.io.Serializable
public final class RangePolicyForcedPoint extends RangePolicyMinimumViewport
A range policy that forces the chart always to display the constructor given point regardless of the actual bounds of the traces within the chart.- Version:
- $Revision: 1.8 $
- 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 RangePolicyForcedPoint()
Creates a range policy that ensures zero to be visible.RangePolicyForcedPoint(double point)
Creates a range policy backed by the given point in the dimension this policy is used (x or y).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPoint(double point)
Sets the point to ensure to be visible.void
setRange(Range range)
This method is an invariant of the super class contract: only the minimum value of the given range is used to enforce visibility.-
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.RangePolicyMinimumViewport
getMax, getMin
-
Methods inherited from class info.monitorenter.gui.chart.rangepolicies.ARangePolicy
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
RangePolicyForcedPoint
public RangePolicyForcedPoint()
Creates a range policy that ensures zero to be visible.
-
RangePolicyForcedPoint
public RangePolicyForcedPoint(double point)
Creates a range policy backed by the given point in the dimension this policy is used (x or y).- Parameters:
point
- the point that always has to be shown.
-
-
Method Detail
-
setPoint
public void setPoint(double point)
Sets the point to ensure to be visible.- Parameters:
point
- the point to ensure to be visible.
-
setRange
public void setRange(Range range)
This method is an invariant of the super class contract: only the minimum value of the given range is used to enforce visibility.Use
setPoint(double)
instead.- Specified by:
setRange
in interfaceIRangePolicy
- Overrides:
setRange
in classARangePolicy
- Parameters:
range
- the internal range that may be taken into account for returning bounds fromIRangePolicy.getMax(double, double)
andIRangePolicy.getMax(double, double)
.
-
-