|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
ffe.lang.FNode
ffe.lang.Term
ffe.lang.Bond
The Bond class represents a covalent bond formed between two atoms.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
| Field Summary | |
static java.util.ArrayList |
bondpool
|
| Fields inherited from class ffe.lang.Term |
atoms, s |
| Fields inherited from class ffe.lang.FNode |
selected |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
Bond(Atom a1,
Atom a2,
int ord)
|
|
Bond(java.lang.String n)
Simple Bond constructor that is intended to be used with the equals method |
|
| Method Summary | |
void |
destroy()
|
boolean |
formsAngleWith(Bond b)
Check to see if this Bond and another combine to form an angle |
java.util.List |
getBondList()
Returns an ArrayList of the Bonds that constitute this Term. |
Atom |
getCommonAtom(Bond b)
Finds the common Atom between this Bond and Bond b |
javax.media.j3d.Group |
getJ3D1()
|
javax.media.j3d.Group |
getJ3D2()
|
Atom |
getOtherAtom(Atom a)
Find the other Atom in this Bond |
Atom |
getOtherAtom(Bond b)
Find the Atom the this Bond and Bond b don't have in common |
boolean |
initJ3D()
|
boolean |
isVisible()
|
void |
reInit(Atom a1,
Atom a2,
int ord)
|
boolean |
sameGroup()
|
void |
setAngleWith(Bond b)
Specifies this Bond helps form an angle with the given Bond |
void |
setBondTransform3d(javax.media.j3d.Transform3D t3d,
double[] pos,
double[] orient,
double len,
boolean newRot)
|
void |
setCylinderVisible(boolean v)
|
void |
setWire(javax.media.j3d.LineArray l,
int i)
|
void |
setWireVisible(boolean v)
|
void |
switchColor(Atom a)
|
void |
switchView(int viewtype)
|
void |
update()
Update recomputes the bonds length |
| Methods inherited from class ffe.lang.Term |
equals, getAtom, getAtomList, getBond, getID, getKey, getMM, getValue, print, setAtoms, setBonds, setID_Key, setID, setKey, setMM, setMM, setSelected, setValue, switchColor, toString |
| Methods inherited from class ffe.lang.FNode |
drawLabel, findCenter, getFSystemNode, getList, getListIterator, getMoleculeNode, getMW, getName, getPolymerNode, getResidueNode, getTermList, isSelected, setName |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.util.ArrayList bondpool
| Constructor Detail |
public Bond(Atom a1,
Atom a2,
int ord)
public Bond(java.lang.String n)
n - Bond id| Method Detail |
public void destroy()
destroy in class Termpublic boolean formsAngleWith(Bond b)
public java.util.List getBondList()
Term
getBondList in class Termpublic Atom getCommonAtom(Bond b)
b - Bond to compare with
public javax.media.j3d.Group getJ3D1()
public javax.media.j3d.Group getJ3D2()
public Atom getOtherAtom(Atom a)
a - The known Atom
public Atom getOtherAtom(Bond b)
b - Bond to compare with
public boolean initJ3D()
public void reInit(Atom a1,
Atom a2,
int ord)
public void switchView(int viewtype)
switchView in class Termpublic void switchColor(Atom a)
public void update()
update in class Termpublic boolean sameGroup()
public void setAngleWith(Bond b)
b - Bond that forms an angle with this Bondpublic void setCylinderVisible(boolean v)
public void setBondTransform3d(javax.media.j3d.Transform3D t3d,
double[] pos,
double[] orient,
double len,
boolean newRot)
public void setWire(javax.media.j3d.LineArray l,
int i)
public boolean isVisible()
public void setWireVisible(boolean v)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||