IRangePolicy
, java.io.Serializable
public final class RangePolicyForcedPoint extends RangePolicyMinimumViewport
m_propertyChangeSupport
PROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN
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).
|
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.
|
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getMax, getMin
public 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 IRangePolicy
setRange
in class ARangePolicy
range
- 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.