|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.colormap.AbstractColorMap
public abstract class AbstractColorMap
This class provides a skeletal implementation of the ColorMap interface to minimize the effort required to implement this interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.jidesoft.colormap.ColorMap |
---|
ColorMap.Assignments, ColorMap.Matching |
Field Summary |
---|
Fields inherited from interface com.jidesoft.colormap.ColorMap |
---|
PROPERTY_ASSIGNMENTS, PROPERTY_BRIGHTNESS, PROPERTY_COLORCOUNT, PROPERTY_INTERVAL, PROPERTY_INVERTED, PROPERTY_MATCHING, PROPERTY_NULLCOLOR, PROPERTY_OVERCOLOR, PROPERTY_PALETTE, PROPERTY_SATURATION, PROPERTY_UNDERCOLOR |
Constructor Summary | |
---|---|
protected |
AbstractColorMap()
|
Method Summary | |
---|---|
void |
addColorMapListener(ColorMapListener listener)
Add a listener to the list that's notified each time a change to the colormap occurs. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list for a specific property. |
void |
addWeakColorMapListener(ColorMapListener listener)
Add a listener to the list that's notified each time a change to the colormap occurs. |
protected void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Support for reporting bound property changes for boolean properties. |
protected void |
firePropertyChange(String propertyName,
int oldValue,
int newValue)
Support for reporting bound property changes for integer properties. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Support for reporting bound property changes for Object properties. |
PropertyChangeListener[] |
getPropertyChangeListeners()
Returns an array of all the property change listeners registered on this component. |
PropertyChangeListener[] |
getPropertyChangeListeners(String propertyName)
Returns an array of all the listeners which have been associated with the named property. |
protected void |
notifyColorMapChanged(ColorMapEvent event)
|
void |
removeColorMapListener(ColorMapListener listener)
Remove a listener to the list that's notified each time a change to the colormap occurs. |
void |
removeColorMapListeners()
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list for a specific property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.colormap.ColorMap |
---|
getAssignedValues, getBrightness, getColor, getColorCount, getInterval, getNullColor, getOverflowColor, getPalette, getSaturation, getUnderflowColor, isInverted, isOverflowColorSet, isUnderflowColorSet |
Constructor Detail |
---|
protected AbstractColorMap()
Method Detail |
---|
public void addColorMapListener(ColorMapListener listener)
ColorMap
addColorMapListener
in interface ColorMap
listener
- the ColorMapListenerpublic void addWeakColorMapListener(ColorMapListener listener)
ColorMap
addWeakColorMapListener
in interface ColorMap
listener
- the ColorMapListenerpublic void removeColorMapListener(ColorMapListener listener)
ColorMap
removeColorMapListener
in interface ColorMap
listener
- the ColorMapListenerpublic void removeColorMapListeners()
protected void notifyColorMapChanged(ColorMapEvent event)
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface ColorMap
listener
- the PropertyChangeListener to be addedremovePropertyChangeListener(java.beans.PropertyChangeListener)
,
getPropertyChangeListeners()
,
addPropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface ColorMap
listener
- the PropertyChangeListener to be removedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
getPropertyChangeListeners()
,
removePropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
public PropertyChangeListener[] getPropertyChangeListeners()
PropertyChangeListener
s
or an empty array if no property change
listeners are currently registeredaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
,
getPropertyChangeListeners(java.lang.String)
,
PropertyChangeSupport.getPropertyChangeListeners()
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
addPropertyChangeListener
in interface ColorMap
propertyName
- one of the property names listed abovelistener
- the PropertyChangeListener to be addedremovePropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
,
getPropertyChangeListeners(java.lang.String)
,
addPropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
removePropertyChangeListener
in interface ColorMap
propertyName
- a valid property namelistener
- the PropertyChangeListener to be removedaddPropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
,
getPropertyChangeListeners(java.lang.String)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
propertyName
- the property name
PropertyChangeListeners
associated with
the named property or an empty array if no listeners have
been addedaddPropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener)
,
getPropertyChangeListeners()
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valueprotected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new valueprotected void firePropertyChange(String propertyName, int oldValue, int newValue)
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new value
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |