|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdesktop.jxlayer.plaf.effect.AbstractLayerEffect
public abstract class AbstractLayerEffect
The default implementation of the LayerEffect interface.
It provides the mutable enabled state
as well as LayerItemListener suppport.
AbstractBufferedImageOpEffect,
BufferedImageOpEffect| Constructor Summary | |
|---|---|
AbstractLayerEffect()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a LayerItemListener to the layer item. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies all PropertyChangeListeners
that have been added to this object. |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
Returns an array of all the PropertyChangeListeners
registered on this LayerItem. |
boolean |
isEnabled()
Indicates if this LayerItem is in active state.
The default return value for this method is true. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from this LayerItem. |
void |
setEnabled(boolean isEnabled)
Enables or disables this AbstractEffect,
depending on the value of the parameter isEnabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jdesktop.jxlayer.plaf.effect.LayerEffect |
|---|
apply |
| Constructor Detail |
|---|
public AbstractLayerEffect()
| Method Detail |
|---|
public boolean isEnabled()
LayerItem is in active state.
The default return value for this method is true.
isEnabled in interface LayerEffecttrue if this LayerItem is in active statepublic void setEnabled(boolean isEnabled)
AbstractEffect,
depending on the value of the parameter isEnabled.
An enabled item takes part in painting process
when a disabled one is not taken into account.
When the enabled state is changed this method
notifies all the LayerItemListener which were added
to this AbstractEffect.
isEnabled - if true this item is enabled;
otherwise this item is disabledpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
LayerItemListener to the layer item.
addPropertyChangeListener in interface LayerEffectl - the listener to addpublic java.beans.PropertyChangeListener[] getPropertyChangeListeners()
PropertyChangeListeners
registered on this LayerItem.
getPropertyChangeListeners in interface LayerEffectLayerItemListeners
or an empty array if no item listeners are currently registeredpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
PropertyChangeListener from this LayerItem.
removePropertyChangeListener in interface LayerEffectl - the listener to remove
protected void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
PropertyChangeListeners
that have been added to this object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||