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
,Serializable
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:
-
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
ConstructorsConstructorDescriptionCreates 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
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 Details
-
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 Details
-
setPoint
public void setPoint(double point) Sets the point to ensure to be visible.- Parameters:
point
- the point to ensure to be visible.
-
setRange
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)
.
-