|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRangePolicy
An interface that allows an axis to be plugged with a range policy.
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 |
occurance |
---|---|---|---|
|
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
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
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)
.
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |