public abstract class ALspGraphicsEffect extends Object
ILspView
.
Similar to ALspStyle, graphics
effects are purely descriptive objects: it is up to layers and painters to
decide how the desired effect can best be realized in terms of OpenGL
rendering.
Effects can be added to the view via TLspGraphicsEffects
, which in turn
is available from TLspViewServices
. Effects
can be toggled on and off with setEnabled(boolean)
, and support the use
of property
change listeners
.Modifier | Constructor and Description |
---|---|
protected |
ALspGraphicsEffect()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener to this effect.
|
boolean |
equals(Object o) |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Fires a property change event for this effect.
|
int |
hashCode() |
boolean |
isEnabled()
Returns whether this effect is enabled.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener from this effect.
|
void |
setEnabled(boolean aEnabled)
Enables or disables this effect.
|
public boolean isEnabled()
public void setEnabled(boolean aEnabled)
aEnabled
- whether or not to enable this effectpublic void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to removeprotected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
propertyName
- the name of the propertyoldValue
- the old value of the propertynewValue
- the new value of the property