Class ALspGraphicsEffect
java.lang.Object
com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
- Direct Known Subclasses:
ALspLight,TLspAtmosphere,TLspFog
Describes a global graphics effect applicable to an
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.- Since:
- 2013.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a property change listener to this effect.booleanprotected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) Fires a property change event for this effect.inthashCode()booleanReturns whether this effect is enabled.voidRemoves a property change listener from this effect.voidsetEnabled(boolean aEnabled) Enables or disables this effect.
-
Constructor Details
-
ALspGraphicsEffect
protected ALspGraphicsEffect()Default constructor.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether this effect is enabled. Painters and layers must honor this setting. The default is true.- Returns:
- whether the effect is enabled
-
setEnabled
public void setEnabled(boolean aEnabled) Enables or disables this effect.- Parameters:
aEnabled- whether or not to enable this effect
-
addPropertyChangeListener
Adds a property change listener to this effect.- Parameters:
listener- the listener to add
-
removePropertyChangeListener
Removes a property change listener from this effect.- Parameters:
listener- the listener to remove
-
firePropertyChange
Fires a property change event for this effect.- Parameters:
propertyName- the name of the propertyoldValue- the old value of the propertynewValue- the new value of the property
-
equals
-
hashCode
public int hashCode()
-