|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<ParaxialGroup>
optics.ParaxialSystem
public class ParaxialSystem
A class to hold a ParaxialSystem being a a vector of ParaxialGroups.
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(Graphics2D g)
Method to draw the ParaxialSystem in a Graphics2D context |
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. |
String |
getTitle()
Method to get the title |
void |
setLabel()
Method to set the diagram labeel |
void |
setTitle(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 |
---|
public ParaxialSystem()
public ParaxialSystem(ParaxialGroup g)
g
- the first ParaxialGroup.Method Detail |
---|
public void setTitle(String t)
t
- the titlepublic String getTitle()
String
the titlepublic void addGroup(ParaxialGroup g)
g
- the ParaxialGroup, which is added to the end
of the vector.public void addGroup(OpticalGroup g, double lambda)
public ParaxialGroup getGroup(int i)
i
- the group index.
ParaxialGroup
the requested grouppublic ParaxialGroup getParaxialGroup()
ParaxialGroup
the equivalent ParaxialGroup.public void setLabel()
public Rectangle2D getBounds()
getBounds
in interface Diagram2DComponent
Rextangle2D
public void draw(Graphics2D g)
draw
in interface Diagram2DComponent
g
- the Graphics2D context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |