public interface IRangePolicy extends 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 and Description |
---|---|
static String |
PROPERTY_RANGE
The property key defining a change of the
min or the
max property. |
static String |
PROPERTY_RANGE_MAX
The property key defining the
max property. |
static String |
PROPERTY_RANGE_MIN
The property key defining the
min property. |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(String propertyName,
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.
|
PropertyChangeListener[] |
getPropertyChangeListeners(String property)
Returns all property change listeners for the given property.
|
Range |
getRange()
Get the range of this range policy.
|
void |
removePropertyChangeListener(PropertyChangeListener listener,
String property)
Deregisters a property change listener that has been registerd for
listening on the given property.
|
void |
removePropertyChangeListener(String property,
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 String PROPERTY_RANGE
min
or the
max
property.
Use in combination with
addPropertyChangeListener(String, PropertyChangeListener)
.
static final String PROPERTY_RANGE_MAX
max
property.
Use in combination with
addPropertyChangeListener(String, PropertyChangeListener)
.
static final String PROPERTY_RANGE_MIN
min
property.
Use in combination with
addPropertyChangeListener(String, PropertyChangeListener)
.
void addPropertyChangeListener(String propertyName, 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.PropertyChangeListener[] getPropertyChangeListeners(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(PropertyChangeListener listener, 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(String property, 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 © 2018. All rights reserved.