IRangePolicy
, java.io.Serializable
public final class RangePolicyFixedViewport extends ARangePolicy
m_propertyChangeSupport
PROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN
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.
|
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.
|
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener, setRange
public RangePolicyFixedViewport()
Range.RANGE_UNBOUNDED
).
public RangePolicyFixedViewport(Range range)
range
- the range that may be used to decide about the policy of
displaying the range.public double getMax(double chartMin, double chartMax)
chartMax
- ignored.chartMin
- ignored.IRangePolicy.getMax(double, double)
public double getMin(double chartMin, double chartMax)
chartMin
- ignored.chartMax
- ignored.IRangePolicy.getMin(double, double)
Copyright © 2001 - 2010 LGPL, All Rights Footloose.