|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.structure.visitor.Visitor
org.proteinshader.structure.visitor.VisibilityVisitor
public class VisibilityVisitor
Knows how to traverse the Structure object hierarchy and find all
visible Drawable objects.
Drawables marked as OPAQUE will be transferred to a list of opaque Segments
or a list of opaque Atoms and Bonds. Drawables marked as TRANSLUCENT will be
transferred to a single list of translucent Drawables.
| Constructor Summary | |
|---|---|
VisibilityVisitor()
Constructs a VisibilityVisitor. |
|
| Method Summary | |
|---|---|
void |
includeAtoms(boolean includeAtoms)
Determines whether Atoms should be included when the lists of opaque and translucent Drawables are filled. |
void |
includeBonds(boolean includeBonds)
Determines whether Bonds should be included when the lists of opaque and translucent Drawables are filled. |
void |
includeSegments(boolean includeSegments)
Determines whether Segments should be included when the lists of opaque and translucent Drawables are filled. |
void |
setListsToFill(List<Segment> opaqueSegments,
List<Drawable> opaqueAtomsAndBonds,
List<Drawable> translucentList)
Sets the lists to place opaque and translucent Drawable objects in. |
void |
visit(Atom atom)
Tests the visiblity of the Atom in order to determine if it should be transferred to the opaque Atoms and Bonds list or the translucent Drawables list. |
void |
visit(Bond bond)
Tests the visiblity of the Bond in order to determine if it should be transferred to the opaque Atoms and Bonds or translucent Drawables list. |
void |
visit(Segment segment)
Tests the visiblity of the Segment in order to determine if it should be transferred to the opaque Segments or translucent Drawables list. |
| Methods inherited from class org.proteinshader.structure.visitor.Visitor |
|---|
clear, includeAAHetAndWater, setDebug, setMode, setMode, setMode, setMode, setMode, setMode, setVisitSegments, visit, visit, visit, visit, visit, visit, visit, visit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VisibilityVisitor()
| Method Detail |
|---|
public void includeAtoms(boolean includeAtoms)
includeAtoms - true if Atoms should be included.public void includeBonds(boolean includeBonds)
includeBonds - true if Bonds should be included.public void includeSegments(boolean includeSegments)
includeSegments - true if Segments should be included.
public void setListsToFill(List<Segment> opaqueSegments,
List<Drawable> opaqueAtomsAndBonds,
List<Drawable> translucentList)
opaqueSegments - the list to add OPAQUE Segment objects to.opaqueAtomsAndBonds - the list to add OPAQUE Atoms and Bonds to.translucentList - the list to add TRANSLUCENT Drawable
objects to.
public void visit(Atom atom)
throws VisitorException
visit in class Visitoratom - the Atom to test.
VisitorException - if an error occurs during the traversal.
public void visit(Bond bond)
throws VisitorException
visit in class Visitorbond - the Bond to test.
VisitorException - if an error occurs during the traversal.
public void visit(Segment segment)
throws VisitorException
visit in class Visitorsegment - the Segment to test.
VisitorException - if an error occurs during the traversal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||