|
||||||||||
| 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.FGroup
The FGroup class has one subnode containing atoms, and one that contains molecular mechanics/geometry terms.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
| Field Summary |
| Fields inherited from class ffe.lang.FNode |
selected |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
FGroup()
Default Constructor initializes a FGroup and a few of its subnodes. |
|
FGroup(java.lang.String n,
boolean bk)
Constructs a FGroup object with name n. |
|
FGroup(java.lang.String n,
FNode tnode,
boolean bk)
Constructs a FGroup object with name n and sets its tgroup child node equals to tnode. |
|
| Method Summary | |
abstract void |
addFNode(FNode m)
Abstract method that should specify how to add various FNode subclasses (such as Atoms, Residues and Polymers) to the FGroup |
void |
collectBonds()
|
void |
ConstructGeometry()
|
void |
destroy()
|
abstract void |
finalize(boolean finalizeGroups)
Abstact method that should specify how to finalize a FGroup |
double[] |
findCenter(boolean w)
This method finds the Geometrical center of this FGroup, or the mass-weighted center if w is set to true, and returns it as a double[3]. |
void |
findDangelingAtoms()
This method constructs an ArrayList of atoms which are under-constrained. |
FNode |
getAngles()
Returns the FGroup's angles FNode. |
Bond |
getBond(int index)
Returns the Bond at the supplied index. |
Bond |
getBond(java.lang.String id)
Returns the Bond with the given id. |
FNode |
getBonds()
Returns the FGroup's bonds FNode. |
boolean |
getBondsKnown()
|
double[] |
getCenter()
Returns the FGroup's center as a double[3]. |
java.util.ArrayList |
getDangelingAtoms()
Returns the FGroup's dangelingatoms list. |
FNode |
getDihedrals()
Returns the FGroup's dihedrals FNode. |
java.util.ArrayList |
getFGroupList()
Returns an ArrayList of the FGroup's moieties FNode's children. |
FNode |
getFGroups()
Returns the FGroup's moieties FNode. |
FNode |
getFNode(int index)
Returns the FNode at the given index. |
FNode |
getFNode(java.lang.String n)
Returns the FNode specified by the String n. |
FNode |
getTerms()
Returns the FGroup's terms FNode. |
boolean |
isFinalized()
Returns true if the FGroup is finalized. |
Joint |
joiner(Bond bond)
Joiner joins |
Joint |
joiner(FGroup m1,
FGroup m2)
Joiner joins Moieties m1 and m2 and returns the Geometry objects formed in a Joint. |
void |
print()
Prints the FGroup Term Node's children and Moieties Node children. |
void |
reInit(java.lang.String n)
|
protected void |
removeLeaves()
|
void |
setAngles(FNode t)
Sets the FGroup's angles node to t. |
void |
setBonds(FNode t)
Sets the FGroup's bonds node to t. |
void |
setBondsKnown(boolean b)
Sets the BondsKnown Variable |
void |
setCenter(double[] d)
Set the value of Center to d. |
void |
setDangelingAtoms(java.util.ArrayList a)
Sets the FGroup's dangelingatoms member to a. |
void |
setDihedrals(FNode t)
Sets the FGroup's dihedrals node to t. |
void |
setFGroups(FNode t)
Sets the FGroup's moieties node to t. |
void |
setFinalized(boolean t)
Specifies whether the FGroup has been finalized. |
void |
setTerms(FNode t)
Sets the FGroup's terms node to t. |
void |
switchColor(int colortype,
javax.vecmath.Color3f color,
javax.media.j3d.Material mat)
|
java.lang.String |
toString()
Returns the Moieties name. |
void |
updateAtoms()
|
void |
updateBonds()
|
| Methods inherited from class ffe.lang.FNode |
drawLabel, equals, getAtomList, getBondList, getFSystemNode, getList, getListIterator, getMoleculeNode, getMW, getName, getPolymerNode, getResidueNode, getTermList, isSelected, setName, setSelected, switchView |
| 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 |
| Constructor Detail |
public FGroup()
public FGroup(java.lang.String n,
boolean bk)
public FGroup(java.lang.String n,
FNode tnode,
boolean bk)
| Method Detail |
public void reInit(java.lang.String n)
public void destroy()
destroy in class FNodepublic abstract void addFNode(FNode m)
public abstract void finalize(boolean finalizeGroups)
protected void removeLeaves()
public void updateBonds()
public void updateAtoms()
public java.lang.String toString()
toString in class FNodepublic void print()
print in class FNodepublic void ConstructGeometry()
public void collectBonds()
public Joint joiner(FGroup m1,
FGroup m2)
public Joint joiner(Bond bond)
bond - Bond
public void findDangelingAtoms()
public double[] findCenter(boolean w)
findCenter in class FNodepublic void setFinalized(boolean t)
public void setTerms(FNode t)
public void setBonds(FNode t)
public void setBondsKnown(boolean b)
public void setAngles(FNode t)
public void setDihedrals(FNode t)
public void setDangelingAtoms(java.util.ArrayList a)
public void setCenter(double[] d)
public void setFGroups(FNode t)
public void switchColor(int colortype,
javax.vecmath.Color3f color,
javax.media.j3d.Material mat)
switchColor in class FNodepublic boolean isFinalized()
public boolean getBondsKnown()
public FNode getFGroups()
public FNode getTerms()
public FNode getBonds()
public FNode getAngles()
public FNode getDihedrals()
public java.util.ArrayList getDangelingAtoms()
public double[] getCenter()
public java.util.ArrayList getFGroupList()
public Bond getBond(int index)
public Bond getBond(java.lang.String id)
public FNode getFNode(int index)
public FNode getFNode(java.lang.String n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||