|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.gui.chart.rangepolicies.ARangePolicy
public abstract class ARangePolicy
A default superclass for IRangePolicy implementations that adds support for setting and getting ranges.
Should be used by any implementation that really works on the data of ranges
(not unbounded ranges). Subclasses should access the internal member range or
use getRange().
| Field Summary | |
|---|---|
protected PropertyChangeSupport |
m_propertyChangeSupport
The instance that add support for firing PropertyChangeEvents
and maintaining PropertyChangeListeners. |
| Fields inherited from interface info.monitorenter.gui.chart.IRangePolicy |
|---|
PROPERTY_RANGE, PROPERTY_RANGE_MAX, PROPERTY_RANGE_MIN |
| Constructor Summary | |
|---|---|
ARangePolicy()
Creates a range policy with an unconfigured range ( Range.RANGE_UNBOUNDED). |
|
ARangePolicy(Range range)
Creates a range policy backed by the given range. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Adds a property change listener. |
protected void |
firePropertyChange(String property,
Object oldvalue,
Object newvalue)
Fires a property change event to the registered listeners. |
PropertyChangeListener[] |
getPropertyChangeListeners(String property)
Returns all property change listeners for the given property. |
Range |
getRange()
Returns the internal range that is used to decide about the policy of displaying the chart. |
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)
Sets the internal range that is used to decide about the policy of displaying the chart. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface info.monitorenter.gui.chart.IRangePolicy |
|---|
getMax, getMin |
| Field Detail |
|---|
protected PropertyChangeSupport m_propertyChangeSupport
PropertyChangeEvents
and maintaining PropertyChangeListeners.
PropertyChangeListener instances.
| Constructor Detail |
|---|
public ARangePolicy()
Range.RANGE_UNBOUNDED).
public ARangePolicy(Range range)
range - the range that may be used to decide about the policy of
displaying the range.| Method Detail |
|---|
public final void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
addPropertyChangeListener in interface IRangePolicypropertyName - The name of the property to listen on.listener - The PropertyChangeListener to be added.ITrace2D.addPropertyChangeListener(java.lang.String,
java.beans.PropertyChangeListener)
protected final void firePropertyChange(String property,
Object oldvalue,
Object newvalue)
property - one of the PROPERTY_XXX constants defined in
ITrace2D.oldvalue - the old value of the property.newvalue - the new value of the property.public PropertyChangeListener[] getPropertyChangeListeners(String property)
IRangePolicyReturns all property change listeners for the given property.
getPropertyChangeListeners in interface IRangePolicyproperty - one of the constants with teh PROPERTY_ prefix
defined in this class or subclasses.
IRangePolicy.getPropertyChangeListeners(java.lang.String)public final Range getRange()
getRange in interface IRangePolicyIRangePolicy.getMax(double, double) and
IRangePolicy.getMax(double, double).
public void removePropertyChangeListener(PropertyChangeListener listener,
String property)
IRangePolicy
removePropertyChangeListener in interface IRangePolicylistener - a listener that will only be informed if the property identified
by the argument propertyName changesproperty - the property the listener was registered to.IRangePolicy.removePropertyChangeListener(java.beans.PropertyChangeListener,
java.lang.String)
public void removePropertyChangeListener(String property,
PropertyChangeListener listener)
IRangePolicyRemoves a property change listener for listening on the given property.
removePropertyChangeListener in interface IRangePolicyproperty - one of the constants with teh PROPERTY_ prefix
defined in this class or subclasses.listener - the listener for this property change.IRangePolicy.removePropertyChangeListener(java.lang.String,
java.beans.PropertyChangeListener)public void setRange(Range range)
setRange in interface IRangePolicyrange - the internal range that may be taken into account for returning
bounds from IRangePolicy.getMax(double, double) and
IRangePolicy.getMax(double, double).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||