public final class RangePolicyForcedPoint extends RangePolicyMinimumViewport
m_propertyChangeSupportPROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN| Constructor and 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).
|
| Modifier and Type | Method and 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.
|
getMax, getMinaddPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListenerpublic RangePolicyForcedPoint()
public RangePolicyForcedPoint(double point)
point - the point that always has to be shown.public void setPoint(double point)
point - the point to ensure to be visible.public void setRange(Range range)
Use setPoint(double) instead.
setRange in interface IRangePolicysetRange in class ARangePolicyrange - the internal range that may be taken into account for returning
bounds from
IRangePolicy.getMax(double, double)
and
IRangePolicy.getMax(double, double).Copyright © 2001 - 2010 LGPL, All Rights Footloose.