|
||||||||||
| 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.Atom
The Atom class represents a single atom.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
| Field Summary | |
static java.util.ArrayList |
atompool
|
static java.util.Hashtable |
hybridTable
|
int |
xyzindex
|
| Fields inherited from class ffe.lang.FNode |
selected |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
Atom(int xyznum,
java.lang.String id,
MMAtom mmdata,
double[] d)
Constructor used when parsing XYZ files |
|
Atom(int xyznum,
java.lang.String id,
MMAtom mmdata,
double[] d,
java.lang.String r,
int n,
java.lang.String c)
|
|
Atom(java.lang.String s)
Constructor |
|
Atom(java.lang.String id,
MMAtom mmdata,
double[] d)
|
|
| Method Summary | |
void |
addTrajectoryCoords(javax.vecmath.Vector3d coords,
int position)
|
void |
destroy()
|
void |
drawLabel(Graphics3D graphics,
javax.media.j3d.J3DGraphics2D g2d,
javax.media.j3d.Node node,
boolean labelAtoms,
boolean labelResidues)
|
boolean |
equals(java.lang.Object object)
Overidden equals method |
void |
getAcceleration(double[] t)
|
java.util.ArrayList |
getAngles()
|
javax.media.j3d.Appearance |
getAppearance()
|
int |
getAtomicNum()
Gets the Atomic Number |
java.util.List |
getAtomList()
Returns an ArrayList of all Atoms below the present FNode. |
java.lang.String |
getAtomType()
|
Bond |
getBond(Atom a)
|
int |
getBondCount()
|
java.util.ArrayList |
getBonds()
Gets the list of the Bonds this Atom helps to form |
java.lang.String |
getChain()
Get the chain name |
float |
getCharge()
Gets the partial atomic charge |
javax.vecmath.Color3f |
getColor()
|
java.util.ArrayList |
getDihedrals()
|
float |
getEpsilon()
Gets the Epsilon value |
void |
getForce(double[] t)
|
int |
getHybridization()
Gets the Atomic Hybridization |
java.lang.String |
getID()
Gets the ID |
java.lang.String |
getIdent()
Gets the atom ID |
void |
getInducedDipole(double[] t)
|
javax.media.j3d.Group |
getJ3D()
|
java.lang.String |
getKey()
Gets the atom Key |
double |
getMagnitude(boolean relative)
|
float |
getMass()
Gets the Atomic Mass |
static double |
getMaxAcceleration()
|
static double |
getMaxForce()
|
static double |
getMaxInduced()
|
static double |
getMaxVelocity()
|
int |
getNumAngles()
|
int |
getNumBonds()
Gets the number of atoms bonded to Atom |
int |
getNumDihedrals()
|
java.lang.String |
getResidueName()
Get the residue name |
int |
getResidueNumber()
|
float |
getSigma()
Gets the Sigma value |
javax.vecmath.Vector3f |
getTrajectoryCoords(int position)
|
int |
getTrajectoryLength()
|
void |
getV3D(javax.vecmath.Vector3d temp)
Gets the Atom's Cartesian Coordinates return The Cartesian Coordinates |
float |
getVDWR()
Gets the van der Waals radius return van der Waals radius |
void |
getVelocity(double[] t)
|
double |
getX()
Gets the x coordinate |
void |
getXYZ(double[] xyz)
Gets the Atom's Cartesian Coordinates return The Cartesian Coordinates |
int |
getXYZIndex()
Gets the XYZ Index |
double |
getY()
Gets the y coordinate |
double |
getZ()
Gets the z coordinate |
boolean |
initJ3D()
|
void |
initVec()
|
boolean |
isBonded(Atom a)
Checks to see if an Atom is bonded to this Atom |
boolean |
isBondVisible()
|
boolean |
isDangeling()
Gets whether or not the Atom is under-constrained |
boolean |
isVisible()
|
void |
move(double[] d)
Add a vector to the Atom's current position vector |
void |
moveto(double[] d)
Moves the atom to the specified location |
void |
moveto(double x,
double y,
double z)
|
void |
print()
Prints the atom identity and Cartesian coordinates to stout |
void |
reInit(int index,
java.lang.String i,
MMAtom mmdata,
double[] d)
|
void |
setAcceleration(double x,
double y,
double z)
|
void |
setAngle(Angle a)
|
void |
setBond(Bond b)
Specify that this Atom is part of a Bond |
void |
setCurrentCycle(int cycle)
|
void |
setDihedral(Dihedral d)
|
void |
setForce(double x,
double y,
double z)
|
void |
setInducedDipole(double x,
double y,
double z)
|
static void |
setMaxAcceleration(double f)
|
static void |
setMaxForce(double f)
|
static void |
setMaxInduced(double f)
|
static void |
setMaxVelocity(double f)
|
void |
setSelected(boolean b)
|
void |
setVeclocity(double x,
double y,
double z)
|
void |
setVectorTransform3d(double[] orient,
double mag)
|
void |
setVisible(boolean v)
|
void |
setXYZIndex(int index)
|
boolean |
showHydrogen()
|
void |
switchColor(int ctype,
javax.vecmath.Color3f newCol,
javax.media.j3d.Material newMat)
|
void |
switchView(int viewtype)
|
java.lang.String |
toShortString()
|
java.lang.String |
toString()
Overidden toString method returns the FNode's name |
void |
update()
Atomic Positions are not updated unless the atom is visible -> this allows better performance for rendering partial structures during an interactive dynamics run or during trajectory playback. |
void |
updateTransforms()
|
| Methods inherited from class ffe.lang.FNode |
findCenter, getBondList, 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 int xyzindex
public static java.util.ArrayList atompool
public static final java.util.Hashtable hybridTable
| Constructor Detail |
public Atom(java.lang.String s)
public Atom(java.lang.String id,
MMAtom mmdata,
double[] d)
public Atom(int xyznum,
java.lang.String id,
MMAtom mmdata,
double[] d)
public Atom(int xyznum,
java.lang.String id,
MMAtom mmdata,
double[] d,
java.lang.String r,
int n,
java.lang.String c)
| Method Detail |
public final void addTrajectoryCoords(javax.vecmath.Vector3d coords,
int position)
public final void destroy()
destroy in class FNodepublic final boolean equals(java.lang.Object object)
equals in class FNodeobject - The Object to compare with this
public void getVelocity(double[] t)
public void getAcceleration(double[] t)
public void getForce(double[] t)
public static void setMaxForce(double f)
public static void setMaxVelocity(double f)
public static void setMaxAcceleration(double f)
public static void setMaxInduced(double f)
public static double getMaxForce()
public static double getMaxVelocity()
public static double getMaxAcceleration()
public static double getMaxInduced()
public void getInducedDipole(double[] t)
public void setVeclocity(double x,
double y,
double z)
public void setAcceleration(double x,
double y,
double z)
public void setForce(double x,
double y,
double z)
public void setInducedDipole(double x,
double y,
double z)
public final java.util.ArrayList getAngles()
public final javax.media.j3d.Appearance getAppearance()
public final int getAtomicNum()
public final java.util.List getAtomList()
FNode
getAtomList in class FNodepublic final java.lang.String getAtomType()
public final Bond getBond(Atom a)
public final int getBondCount()
public final java.util.ArrayList getBonds()
public final float getCharge()
public final javax.vecmath.Color3f getColor()
public final java.util.ArrayList getDihedrals()
public final float getEpsilon()
public final int getHybridization()
public final java.lang.String getID()
public final java.lang.String getResidueName()
public final int getResidueNumber()
public final java.lang.String getChain()
public final java.lang.String getIdent()
public final javax.media.j3d.Group getJ3D()
public final java.lang.String getKey()
public final float getMass()
public final int getNumAngles()
public final int getNumBonds()
public final int getNumDihedrals()
public float getSigma()
public javax.vecmath.Vector3f getTrajectoryCoords(int position)
public int getTrajectoryLength()
public void getV3D(javax.vecmath.Vector3d temp)
public float getVDWR()
public double getX()
public void getXYZ(double[] xyz)
public final int getXYZIndex()
public final double getY()
public final double getZ()
public final boolean isBonded(Atom a)
a - Atom to check
public boolean isVisible()
public boolean isBondVisible()
public boolean showHydrogen()
public boolean isDangeling()
public boolean initJ3D()
public void initVec()
public final void move(double[] d)
d - Vector to add to the current positionpublic final void moveto(double[] d)
d - Location to move this Atom to
public final void moveto(double x,
double y,
double z)
public final void print()
print in class FNode
public final void reInit(int index,
java.lang.String i,
MMAtom mmdata,
double[] d)
public final void setAngle(Angle a)
public final void setBond(Bond b)
b - Bond that this Atom is part ofpublic final void setCurrentCycle(int cycle)
public final void setDihedral(Dihedral d)
public final void setXYZIndex(int index)
public void setSelected(boolean b)
setSelected in class FNode
public final void switchColor(int ctype,
javax.vecmath.Color3f newCol,
javax.media.j3d.Material newMat)
switchColor in class FNodepublic final void switchView(int viewtype)
switchView in class FNode
public void drawLabel(Graphics3D graphics,
javax.media.j3d.J3DGraphics2D g2d,
javax.media.j3d.Node node,
boolean labelAtoms,
boolean labelResidues)
drawLabel in class FNodepublic double getMagnitude(boolean relative)
public final void setVisible(boolean v)
public java.lang.String toString()
FNode
toString in class FNodepublic java.lang.String toShortString()
public void update()
public void updateTransforms()
public void setVectorTransform3d(double[] orient,
double mag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||