|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdesktop.jxlayer.plaf.effect.AbstractEffect
public abstract class AbstractEffect
The default implementation of the Effect interface.
It provides the mutable enabled state
as well as LayerItemListener suppport.
AbstractImageOpEffect,
ImageOpEffect| Constructor Summary | |
|---|---|
AbstractEffect()
|
|
| Method Summary | |
|---|---|
void |
addLayerItemListener(LayerItemListener l)
Adds a LayerItemListener to the layer item. |
protected void |
fireLayerItemChanged()
Notifies all LayerItemListeners
that have been added to this object. |
protected void |
fireLayerItemChanged(LayerItemChangeEvent event)
Notifies all LayerItemListeners that have registered interest
for notification on this event type. |
LayerItemListener[] |
getLayerItemListeners()
Returns an array of all the LayerItemListeners
registered on this LayerItem. |
boolean |
isEnabled()
Indicates if this LayerItem is in active state.
The default return value for this method is true. |
void |
removeLayerItemListener(LayerItemListener l)
Removes a LayerItemListener 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.Effect |
|---|
apply |
| Constructor Detail |
|---|
public AbstractEffect()
| Method Detail |
|---|
public boolean isEnabled()
LayerItem is in active state.
The default return value for this method is true.
isEnabled in interface LayerItemtrue 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 addLayerItemListener(LayerItemListener l)
LayerItemListener to the layer item.
addLayerItemListener in interface LayerIteml - the listener to addpublic LayerItemListener[] getLayerItemListeners()
LayerItemListeners
registered on this LayerItem.
getLayerItemListeners in interface LayerItemLayerItemListeners
or an empty array if no item listeners are currently registeredpublic void removeLayerItemListener(LayerItemListener l)
LayerItemListener from this LayerItem.
removeLayerItemListener in interface LayerIteml - the listener to removeprotected void fireLayerItemChanged()
LayerItemListeners
that have been added to this object.
protected void fireLayerItemChanged(LayerItemChangeEvent event)
LayerItemListeners that have registered interest
for notification on this event type.
event - the LayerItemChangeEvent to be passed
to the LayerItemListeners added to this object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||