org.selman.java3d.book.lighttest
Class LightObject

java.lang.Object
  |
  +--org.selman.java3d.book.lighttest.LightObject
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.ItemListener
Direct Known Subclasses:
AmbientLightObject, DirectionalLightObject, PointLightObject

public abstract class LightObject
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.ItemListener


Field Summary
protected  javax.swing.JColorChooser m_ColorChooser
           
protected  javax.media.j3d.Light m_Light
           
protected  java.awt.Panel m_Panel
           
 
Constructor Summary
LightObject()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void addUiToPanel(java.awt.Panel panel)
           
protected  int[] createCompoundArray(int[] a1, int[] a2)
           
 javax.media.j3d.Group createGeometry()
           
protected  javax.media.j3d.Light createLight()
           
protected  int[] getCapabilities()
           
 javax.media.j3d.Light getLight()
           
 java.lang.String getName()
           
 void itemStateChanged(java.awt.event.ItemEvent event)
           
protected  void OnColor()
           
 void synchLightToUi()
           
 void synchUiToLight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Panel

protected java.awt.Panel m_Panel

m_ColorChooser

protected javax.swing.JColorChooser m_ColorChooser

m_Light

protected javax.media.j3d.Light m_Light
Constructor Detail

LightObject

public LightObject()
Method Detail

createLight

protected javax.media.j3d.Light createLight()

getLight

public javax.media.j3d.Light getLight()

getName

public java.lang.String getName()

getCapabilities

protected int[] getCapabilities()

createGeometry

public javax.media.j3d.Group createGeometry()

addUiToPanel

public void addUiToPanel(java.awt.Panel panel)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent event)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

OnColor

protected void OnColor()

synchLightToUi

public void synchLightToUi()

synchUiToLight

public void synchUiToLight()

createCompoundArray

protected int[] createCompoundArray(int[] a1,
                                    int[] a2)