IRangePolicy, java.io.SerializableRangePolicyForcedPointpublic class RangePolicyMinimumViewport extends ARangePolicy
IRangePolicy implementation that
guarantees a minimum displayed range (viewport) but will stretch if values of
the corresponding Chart2D exceeds these
constructor given bounds.
To sum up the policy of this implementation this
IRangePolicy
Chart2D (every
TracePoint2D of the chart's
ITrace2D instances).
m_propertyChangeSupportPROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN| Constructor | Description |
|---|---|
RangePolicyMinimumViewport(Range range) |
Constructs an instance that will always ensure that the given range will be
displayed.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
getMax(double chartMin,
double chartMax) |
Returns the maximum of the chart or of the internal range if greater.
|
double |
getMin(double chartMin,
double chartMax) |
Define the lower bound of the Chart2D's value range.
|
addPropertyChangeListener, equals, firePropertyChange, getPropertyChangeListeners, getRange, hashCode, removePropertyChangeListener, removePropertyChangeListener, setRangepublic RangePolicyMinimumViewport(Range range)
Constructs an instance that will always ensure that the given range will be displayed.
range - the range that always should be visible.public double getMax(double chartMin,
double chartMax)
chartMin - ignored.chartMax - returned if greater than the value of the internal range.IRangePolicy.getMax(double, double)public double getMin(double chartMin,
double chartMax)
IRangePolicyAAxis this instance is bound to.chartMin - the minimum value of the connected Chart2D that may / should be
taken into account.chartMax - the maximum value of the connected Chart2D that may / should be
taken into account.IRangePolicy.getMin(double, double)Copyright © 2001 - 2010 LGPL, All Rights Footloose.