Class ALspLight
java.lang.Object
com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
com.luciad.view.lightspeed.services.effects.ALspLight
- Direct Known Subclasses:
ALspDirectionalLight
,TLspAmbientLight
Base class for light sources. This class only defines the color of the light.
- Since:
- 2013.0
-
Constructor Summary
-
Method Summary
Methods inherited from class com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
addPropertyChangeListener, firePropertyChange, isEnabled, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ALspLight
protected ALspLight()Default constructor. The light's color is set to white. -
ALspLight
Creates a light with the given color.- Parameters:
aColor
- the light color
-
-
Method Details
-
getColor
Returns the light's color.- Returns:
- the light's color
-
setColor
Sets the light's color.- Parameters:
aColor
- the new color
-
equals
- Overrides:
equals
in classALspGraphicsEffect
-
hashCode
public int hashCode()- Overrides:
hashCode
in classALspGraphicsEffect
-