org.jscience.physics.waves.optics.elements
Class DeviceSwitcher

java.lang.Object
  extended by org.jscience.physics.waves.optics.elements.OpticalElement
      extended by org.jscience.physics.waves.optics.elements.DeviceSwitcher
All Implemented Interfaces:
java.lang.Cloneable

public class DeviceSwitcher
extends OpticalElement

DOCUMENT ME!


Constructor Summary
DeviceSwitcher()
          Creates a new DeviceSwitcher object.
DeviceSwitcher(OpticalElement d)
          Creates a new DeviceSwitcher object.
DeviceSwitcher(java.lang.String l, OpticalElement d)
          Creates a new DeviceSwitcher object.
 
Method Summary
 void addDevice(java.lang.String l, OpticalElement d)
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 int drawRay(java.awt.Graphics g, Ray r, int index)
          DOCUMENT ME!
 void drawSelf(java.awt.Graphics g)
          DOCUMENT ME!
 java.lang.String getCurrentDevice()
          DOCUMENT ME!
 void propagate(Ray r)
          DOCUMENT ME!
 void propagateRayPointSelf(RayPoint r)
          DOCUMENT ME!
 void rearrange()
          DOCUMENT ME!
 void setCurrentDevice(java.lang.String l)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.waves.optics.elements.OpticalElement
clone, getAxis, getCenter, getOffAxis, getWidth, getX, moveAxis, moveOffAxis, moveOnAxis, propagateRayPoint, putAfter, setWidth, translateOrigin, translateOriginBack
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceSwitcher

public DeviceSwitcher()
Creates a new DeviceSwitcher object.


DeviceSwitcher

public DeviceSwitcher(OpticalElement d)
Creates a new DeviceSwitcher object.

Parameters:
d - DOCUMENT ME!

DeviceSwitcher

public DeviceSwitcher(java.lang.String l,
                      OpticalElement d)
Creates a new DeviceSwitcher object.

Parameters:
l - DOCUMENT ME!
d - DOCUMENT ME!
Method Detail

setCurrentDevice

public void setCurrentDevice(java.lang.String l)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!

getCurrentDevice

public java.lang.String getCurrentDevice()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addDevice

public void addDevice(java.lang.String l,
                      OpticalElement d)
DOCUMENT ME!

Parameters:
l - DOCUMENT ME!
d - DOCUMENT ME!

drawRay

public int drawRay(java.awt.Graphics g,
                   Ray r,
                   int index)
DOCUMENT ME!

Overrides:
drawRay in class OpticalElement
Parameters:
g - DOCUMENT ME!
r - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
Ray, RayPoint, OpticalDevice

draw

public void draw(java.awt.Graphics g)
DOCUMENT ME!

Overrides:
draw in class OpticalElement
Parameters:
g - DOCUMENT ME!
See Also:
OpticalElement.getCenter(), OpticalElement.drawSelf(java.awt.Graphics), OpticalDevice.draw(java.awt.Graphics)

drawSelf

public void drawSelf(java.awt.Graphics g)
DOCUMENT ME!

Specified by:
drawSelf in class OpticalElement
Parameters:
g - DOCUMENT ME!

propagate

public void propagate(Ray r)
DOCUMENT ME!

Overrides:
propagate in class OpticalElement
Parameters:
r - DOCUMENT ME!
See Also:
Ray, RayPoint, OpticalElement.propagateRayPoint(org.jscience.physics.waves.optics.rays.RayPoint)

propagateRayPointSelf

public void propagateRayPointSelf(RayPoint r)
DOCUMENT ME!

Specified by:
propagateRayPointSelf in class OpticalElement
Parameters:
r - DOCUMENT ME!
See Also:
RayPoint, OpticalElement.getCenter()

rearrange

public void rearrange()
DOCUMENT ME!

Overrides:
rearrange in class OpticalElement