|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.javagl.swogl.scene.DefaultLightSetup
public final class DefaultLightSetup
Default implementation of a LightSetup
Constructor Summary | |
---|---|
DefaultLightSetup()
Creates a new, empty light setup, with a default ambient light of (0.2, 0.2, 0.2, 1.0). |
Method Summary | |
---|---|
void |
addLight(Light light)
Add the given Light to this setup. |
void |
addLightSetupListener(LightSetupListener lightSetupListener)
Add the given LightSetupListener to be informed about
changes in this LightSetup |
void |
clear()
Removes all lights from this LightSetup |
javax.vecmath.Color4f |
getAmbient()
Returns the global ambient light color |
java.util.List<Light> |
getLights()
Returns an unmodifiable copy of the current list of lights contained in this setup. |
int |
getMaximumNumberOfLights()
Returns the maximum number of Light s that
may be contained in this setup |
void |
removeLight(int index)
Removes the Light with the given Index from
this setup. |
void |
removeLight(Light light)
Removes the given Light from this setup. |
void |
removeLightSetupListener(LightSetupListener lightSetupListener)
Remove the given LightSetupListener |
void |
setAmbient(javax.vecmath.Tuple4f color)
Set the global ambient light color |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultLightSetup()
Method Detail |
---|
public javax.vecmath.Color4f getAmbient()
LightSetup
getAmbient
in interface LightSetup
public void setAmbient(javax.vecmath.Tuple4f color)
LightSetup
setAmbient
in interface LightSetup
color
- The global ambient light colorpublic int getMaximumNumberOfLights()
LightSetup
Light
s that
may be contained in this setup
getMaximumNumberOfLights
in interface LightSetup
public void addLight(Light light)
LightSetup
addLight
in interface LightSetup
light
- The light to addpublic void removeLight(int index)
LightSetup
Light
with the given Index from
this setup.
removeLight
in interface LightSetup
index
- The index of the Light to remove.public void removeLight(Light light)
LightSetup
Light
from this setup.
removeLight
in interface LightSetup
light
- The Light to remove.public void clear()
LightSetup
clear
in interface LightSetup
public java.util.List<Light> getLights()
LightSetup
getLights
in interface LightSetup
public void addLightSetupListener(LightSetupListener lightSetupListener)
LightSetup
LightSetupListener
to be informed about
changes in this LightSetup
addLightSetupListener
in interface LightSetup
lightSetupListener
- The listener to addpublic void removeLightSetupListener(LightSetupListener lightSetupListener)
LightSetup
LightSetupListener
removeLightSetupListener
in interface LightSetup
lightSetupListener
- The listener to removepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |