optics
Class ParaxialSystem

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector<ParaxialGroup>
              extended by optics.ParaxialSystem
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<ParaxialGroup>, java.util.Collection<ParaxialGroup>, java.util.List<ParaxialGroup>, java.util.RandomAccess, Diagram2DComponent

public class ParaxialSystem
extends java.util.Vector<ParaxialGroup>
implements Diagram2DComponent

A class to hold a ParaxialSystem being a a vector of ParaxialGroups.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ParaxialSystem()
          Constructor to form an ParaxialSystem with no groups
ParaxialSystem(ParaxialGroup g)
          Constructor to forma ParaxialSystem with the first group specified.
 
Method Summary
 void addGroup(OpticalGroup g, double lambda)
          Method to add the
 void addGroup(ParaxialGroup g)
          Method to add a ParaxialGroup.
 void draw(java.awt.Graphics2D g)
          Method to draw the ParaxialSystem in a Graphics2D context
 java.awt.geom.Rectangle2D getBounds()
          Method to get the Bounds for graphics rendering.
 ParaxialGroup getGroup(int i)
          Method to get the specifed ParaxialGroup
 ParaxialGroup getParaxialGroup()
          Method to get the equivalent ParaxialGroup of the system.
 java.lang.String getTitle()
          Method to get the title
 void setTitle(java.lang.String t)
          Method to set the title
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

ParaxialSystem

public ParaxialSystem()
Constructor to form an ParaxialSystem with no groups


ParaxialSystem

public ParaxialSystem(ParaxialGroup g)
Constructor to forma ParaxialSystem with the first group specified.

Parameters:
g - the first ParaxialGroup.
Method Detail

setTitle

public void setTitle(java.lang.String t)
Method to set the title

Parameters:
t - the title

getTitle

public java.lang.String getTitle()
Method to get the title

Returns:
String the title

addGroup

public void addGroup(ParaxialGroup g)
Method to add a ParaxialGroup.

Parameters:
g - the ParaxialGroup, which is added to the end of the vector.

addGroup

public void addGroup(OpticalGroup g,
                     double lambda)
Method to add the


getGroup

public ParaxialGroup getGroup(int i)
Method to get the specifed ParaxialGroup

Parameters:
i - the group index.
Returns:
ParaxialGroup the requested group

getParaxialGroup

public ParaxialGroup getParaxialGroup()
Method to get the equivalent ParaxialGroup of the system.

Returns:
ParaxialGroup the equivalent ParaxialGroup.

getBounds

public java.awt.geom.Rectangle2D getBounds()
Method to get the Bounds for graphics rendering.

Specified by:
getBounds in interface Diagram2DComponent
Returns:
Rextangle2D

draw

public void draw(java.awt.Graphics2D g)
Method to draw the ParaxialSystem in a Graphics2D context

Specified by:
draw in interface Diagram2DComponent
Parameters:
g - the Graphics2D context