java.io.Serializable
ARangePolicy
, RangePolicyFixedViewport
, RangePolicyForcedPoint
, RangePolicyHighestValues
, RangePolicyHighestValuesForcedMin
, RangePolicyMinimumViewport
, RangePolicyUnbounded
public interface IRangePolicy
extends java.io.Serializable
Implementations may limit the range of the underlying Chart2D's data (clipping / zooming), increase it (void space offset), guarantee a minimum viewport... .
property |
oldValue |
newValue |
occurrence |
---|---|---|---|
|
that changed |
, the new value |
Fired if any bound of the range changed (min or max). |
|
, the old max value of the
range. |
, the new max value
of the range. |
|
|
, the old min value of the
range. |
, the new min value
of the range. |
AAxis
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
PROPERTY_RANGE |
The property key defining a change of the
min or the
max property. |
static java.lang.String |
PROPERTY_RANGE_MAX |
The property key defining the
max property. |
static java.lang.String |
PROPERTY_RANGE_MIN |
The property key defining the
min property. |
Modifier and Type | Method | Description |
---|---|---|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener) |
Registers a property change listener that will be informed about changes of
the property identified by the given
propertyName . |
double |
getMax(double chartMin,
double chartMax) |
Define the upper bound of the Chart2D's value range.
|
double |
getMin(double chartMin,
double chartMax) |
Define the lower bound of the Chart2D's value range.
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String property) |
Returns all property change listeners for the given property.
|
Range |
getRange() |
Get the range of this range policy.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener,
java.lang.String property) |
Deregisters a property change listener that has been registerd for
listening on the given property.
|
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener) |
Removes a property change listener for listening on the given property.
|
void |
setRange(Range range) |
Set the range of this RangePolicy.
|
static final java.lang.String PROPERTY_RANGE
min
or the
max
property.
Use in combination with
addPropertyChangeListener(String, PropertyChangeListener)
.
static final java.lang.String PROPERTY_RANGE_MAX
max
property.
Use in combination with
addPropertyChangeListener(String, PropertyChangeListener)
.
static final java.lang.String PROPERTY_RANGE_MIN
min
property.
Use in combination with
addPropertyChangeListener(String, PropertyChangeListener)
.
void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
.
propertyName
- the name of the property the listener is interested inlistener
- a listener that will only be informed if the property identified
by the argument propertyName
changesdouble getMax(double chartMin, double chartMax)
AAxis
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.double getMin(double chartMin, double chartMax)
AAxis
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.java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String property)
Returns all property change listeners for the given property.
property
- one of the constants with teh PROPERTY_
prefix
defined in this class or subclasses.Range getRange()
void removePropertyChangeListener(java.beans.PropertyChangeListener listener, java.lang.String property)
listener
- a listener that will only be informed if the property identified
by the argument propertyName
changesproperty
- the property the listener was registered to.void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
Removes a property change listener for listening on the given property.
property
- one of the constants with teh PROPERTY_
prefix
defined in this class or subclasses.listener
- the listener for this property change.void setRange(Range range)
range
- the Range for the range policy.Copyright © 2001 - 2010 LGPL, All Rights Footloose.