|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectastex.Point3d
astex.Atom
public class Atom
A class for holding information about an atom.
| Field Summary | |
|---|---|
static int |
Aromatic
|
static int |
atomsCached
|
static int |
atomsCreated
|
java.lang.String |
atomType
The (usually sybyl) atom type of the atom. |
int |
attributes
An integer for storing various attributes. |
static int |
B
The B coordinate attribute. |
static int |
BallAndStick
The property set flag. |
float |
ballRadius
The stick radius of the atom. |
static java.lang.String |
BAttribute
|
static java.lang.String |
Color
|
static int |
CustomLabelled
The property set flag. |
static int |
Cylinder
The property set flag. |
static int |
Displayed
The atom display flag. |
static int |
DisplayedMask
|
static int |
E
The energy. |
static java.lang.String |
Element
|
static int |
Hetero
The atom is an heteroatom. |
static int |
ID
The ID attribute. |
char |
insertionCode
Insertion code if any. |
static int |
Labelled
The atom is labelled. |
static int |
ModellingActive
Atom is active in energy calculations. |
ModellingData |
modellingData
|
static int |
ModellingEnvironment
Atom is environment in energy calculations. |
static int |
ModellingFixed
Atom is fixed in energy calculations. |
static int |
ModellingXray
Atom is xray terms in energy calculations. |
static int |
NameLeftJustified
Atom is fixed in energy calculations. |
static int |
O
The O coordinate attribute. |
static java.lang.String |
OAttribute
|
static java.lang.String |
Opacity
|
static int |
Property
The property set flag. |
static int |
Q
The partial charge attribute. |
static java.lang.String |
QAttribute
|
float |
radius
The radius of the atom. |
static java.lang.String |
Radius
|
static int |
Ring
|
static int |
Selected
The atom is selected. |
static int |
Solvent
The atom is solvent. |
static int |
sp
|
static int |
sp2
|
static int |
sp3
Hybridisation states. |
static int |
Surface
The surfaced atom flag. |
static int |
SurfaceContext
The surface context flag. |
static int |
TemporarilySelected
The atom is temporarily selected. |
static int |
Undefined
Undefined atom id. |
static int |
VDWSphere
The sphere flag. |
static int |
Visited
The atom visit flag. |
static int |
Wide
The wide atom flag. |
static int |
X
The X coordinate attribute. |
static java.lang.String |
XAttribute
|
int |
xs
Screen x-coordinate. |
static int |
Y
The Y coordinate attribute. |
static java.lang.String |
YAttribute
|
int |
ys
Screen y-coordinate. |
static int |
Z
The Z coordinate attribute. |
static java.lang.String |
ZAttribute
|
int |
zs
Screen z-coordinate. |
| Fields inherited from class astex.Point3d |
|---|
x, y, z |
| Fields inherited from interface astex.generic.GenericInterface |
|---|
Name |
| Method Summary | |
|---|---|
void |
addBond(Bond bond)
Add a bond to the atom. |
void |
addChild(GenericInterface child)
Add a child. |
void |
addListener(GenericEventInterface geh)
Add a listener. |
void |
addParent(GenericInterface parent)
Add a parent. |
boolean |
connected121314(Atom otherAtom)
Are these atoms connected 1,2, 1,3 or 1,4. |
boolean |
connected13(Atom targetAtom)
Is this atom connected by two bonds to the specified atom. |
boolean |
connected14(Atom targetAtom)
Is this atom connected by three bonds to the specified atom. |
static Atom |
create()
Create an atom. |
void |
delete()
Remove an atom. |
void |
edit(java.lang.String name,
java.lang.String value)
|
java.lang.String |
generateLabel(java.lang.String format)
Generate an atom label according to a format. |
java.lang.Object |
get(java.lang.Object key,
java.lang.Object def)
Get Object representing key. |
java.lang.String |
getAtomLabel()
Get the atom label. |
java.lang.String |
getAtomSymbol()
Get the atomic symbol for this atom. |
java.lang.String |
getAtomType()
Get the atomType. |
double |
getAttribute(int attribute)
Get an attribute. |
double |
getBallRadius()
Get the vdw radius. |
double |
getBFactor()
Return the bFactor. |
double |
getBiggestDisplayedRadius()
Get the biggest radius that is displayed. |
Bond |
getBond(Atom otherAtom)
Does this atom have a bond to the specified atom. |
Bond |
getBond(int index)
Return a specified bond or null if it doesn't exist. |
int |
getBondCount()
Return the total number of bonds. |
Atom |
getBondedAtom(int index)
Return the specified bonded atom. |
Atom |
getBondedAtom(java.lang.String nm)
Get bonded atom with this name. |
double |
getBondingRadius()
Get the bonding radius for the atom. |
Bond |
getBondWithOrder(int bondOrder)
Return a bond with the specified order. |
int |
getCharge()
Get the atom charge. |
java.util.Enumeration |
getChildren(java.lang.Object type)
Get an enumeration of our children. |
java.lang.Object |
getClassname()
Get our class description. |
int |
getColor()
Get the atom color. |
java.lang.String |
getCustomLabel()
Set whether the atom is solvent. |
int |
getElement()
Get the element type of this atom. |
int |
getHybridisation()
Return the hybridisation state of the atom. |
int |
getId()
Get the id for this atom. |
char |
getInsertionCode()
Get the insertion code. |
double |
getMass()
Get the default mass for the atom. |
Molecule |
getMolecule()
Get the molecule to which the atom belongs. |
double |
getOccupancy()
Get the occupancy. |
java.util.Enumeration |
getParents(java.lang.Object type)
Get an Enumeration of our parents. |
float |
getPartialCharge()
Get the value of partialCharge. |
java.util.Enumeration |
getProperties()
Return an enumeration of our properties. |
Residue |
getResidue()
Get the residue to which the atom belongs. |
int |
getSelectedColor()
Get the color or selected color if selected. |
java.lang.String |
getSymbol()
Get the atom symbol for the element. |
int |
getTransparency()
Get the transparency. |
double |
getVDWRadius()
Get the VDW radius of this atom. |
boolean |
hasAttributes()
Does the atom have any attributes set? |
boolean |
hasBond(Atom otherAtom)
Does this atom have a bond to the other atom. |
boolean |
hasBondWithOrder(int bondOrder)
Does this atom have a bond of the specified bond order. |
boolean |
hasExplicitBond()
Does this atom have bonds that came from an explicit bond. |
void |
initialise()
Initialise an atom. |
boolean |
isAliphaticHydrogen()
Is this an aliphatic hydrogen. |
boolean |
isDisplayed()
Has this atom been displayed. |
boolean |
isHBondAcceptor()
Is this atom an HBond donor. |
boolean |
isHBondDonor()
Is this atom an HBond donor. |
boolean |
isHeteroAtom()
Is this atom a heteroatom. |
boolean |
isLabelled()
Is this atom a solvent atom. |
boolean |
isSelected()
Is this atom selected. |
boolean |
isSimpleDisplayed()
Has this atom been displayed. |
boolean |
isSolvent()
Is this atom a solvent atom. |
boolean |
isTemporarilySelected()
Is this atom temporarily selected. |
boolean |
isVisited()
Has this atom been visited. |
boolean |
isWide()
Has this atom been wide. |
void |
release()
Release an atom after we finished with it. |
void |
removeAllBonds()
Remove all bonds. |
void |
removeBond(Bond b)
Remove a bond from this atom. |
void |
removeChild(GenericInterface child)
Remove a child. |
void |
removeListener(GenericEventInterface geh)
Remove a listener. |
void |
removeParent(GenericInterface parent)
Remove a parent. |
void |
resetColor()
Set color back to undefined. |
int |
select(int state)
Set the selection state. |
java.lang.String |
selectStatement()
|
java.lang.Object |
set(java.lang.Object key,
java.lang.Object value)
Set an object value. |
void |
setAtomLabel(java.lang.String newLabel)
Set the atom label. |
void |
setAtomType(java.lang.String s)
Set the atomType. |
void |
setBallRadius(double r)
Set the vdw radius. |
void |
setBFactor(double b)
Set the bFactor. |
void |
setCharge(int newCharge)
Set the atom charge. |
void |
setClassname(java.lang.String classname)
Set our classname. |
void |
setColor(int newColor)
Set the atom color. |
void |
setCustomLabel(java.lang.String l)
Set whether the atom is solvent. |
void |
setDisplayed(boolean state)
Set whether the atom has been displayed. |
void |
setElement(int newElement)
Set the element of this atom. |
void |
setHeteroAtom(boolean state)
Set whether the atom is a heteroatom. |
void |
setId(int newId)
Set the id for this atom. |
void |
setInsertionCode(char c)
Set the insertion code. |
void |
setLabelled(boolean state)
Set whether the atom is solvent. |
void |
setOccupancy(double o)
Set the occupancy. |
void |
setOrClearAttribute(int attribute,
boolean state)
Set or clear a particular attribute. |
void |
setParent(Residue residue)
Set the residues to which the atom belongs. |
void |
setPartialCharge(double v)
Set the value of partialCharge. |
void |
setSelected(boolean state)
Set whether the atom is selected. |
void |
setSolvent(boolean state)
Set whether the atom is solvent. |
void |
setTemporarilySelected(boolean state)
Set whether the atom is temporarily selected. |
void |
setTransparency(int t)
Set the transparency. |
void |
setVDWRadius(double r)
Set the vdw radius. |
void |
setVisited(boolean state)
Set whether the atom has been visited. |
void |
setWide(boolean state)
Set whether the atom has been wide. |
java.lang.String |
toString()
Return a string representation of this point. |
void |
transformToScreen(Matrix m)
Transform this atom to screen coordinates. |
| Methods inherited from class astex.Point3d |
|---|
add, angle, angleDegrees, clone, cross, cross, cross, crossNoNormalise, distance, distance, distanceSq, distanceSq, divide, dot, equal, get, getX, getY, getZ, isNullVector, length, length, max, mid, mid, min, negate, normalise, normalToLine, normalToLine, normalToLine, normalToLine, planeEquation, print, scale, set, set, set, set, setX, setY, setZ, subtract, torsion, torsion, torsionDegrees, torsionDegrees, transform, transformByMatrix, translate, translate, unitVector, unitVector, unitVector, vector, vector, zero |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int Undefined
public int attributes
public float radius
public float ballRadius
public static int Solvent
public static int Labelled
public static int Selected
public static int Hetero
public static int TemporarilySelected
public static int Visited
public static int Displayed
public static int Wide
public static int VDWSphere
public static int Surface
public static int SurfaceContext
public static int Property
public static int BallAndStick
public static int Cylinder
public static int CustomLabelled
public static int DisplayedMask
public static int ModellingActive
public static int ModellingEnvironment
public static int ModellingXray
public static int ModellingFixed
public static int NameLeftJustified
public static final int Aromatic
public static final int Ring
public ModellingData modellingData
public static final int X
public static final int Y
public static final int Z
public static final int B
public static final int O
public static final int ID
public static final int Q
public static final int E
public static final int sp3
public static final int sp2
public static final int sp
public transient int xs
public transient int ys
public transient int zs
public char insertionCode
public java.lang.String atomType
public static int atomsCreated
public static int atomsCached
public static final java.lang.String XAttribute
public static final java.lang.String YAttribute
public static final java.lang.String ZAttribute
public static final java.lang.String BAttribute
public static final java.lang.String OAttribute
public static final java.lang.String QAttribute
public static final java.lang.String Color
public static final java.lang.String Radius
public static final java.lang.String Opacity
public static final java.lang.String Element
| Method Detail |
|---|
public void initialise()
initialise in class Point3dpublic void setAtomType(java.lang.String s)
public java.lang.String getAtomType()
public void setTransparency(int t)
public int getTransparency()
public void setInsertionCode(char c)
public char getInsertionCode()
public static Atom create()
public void release()
public void setBFactor(double b)
public double getBFactor()
public void setOccupancy(double o)
public double getOccupancy()
public float getPartialCharge()
public void setPartialCharge(double v)
v - Value to assign to partialCharge.public double getAttribute(int attribute)
public void setId(int newId)
public int getId()
public void setElement(int newElement)
public int getElement()
public java.lang.String getAtomSymbol()
public void setAtomLabel(java.lang.String newLabel)
public java.lang.String getAtomLabel()
public java.lang.String generateLabel(java.lang.String format)
public java.lang.String getSymbol()
public double getMass()
public int getCharge()
public void setCharge(int newCharge)
public void setColor(int newColor)
public int getColor()
public int getSelectedColor()
public void resetColor()
public Molecule getMolecule()
public void setParent(Residue residue)
public Residue getResidue()
public void addBond(Bond bond)
public Bond getBond(int index)
public Atom getBondedAtom(int index)
public int getBondCount()
public Bond getBond(Atom otherAtom)
public Atom getBondedAtom(java.lang.String nm)
public boolean hasBond(Atom otherAtom)
public boolean hasExplicitBond()
public boolean connected13(Atom targetAtom)
public boolean connected14(Atom targetAtom)
public boolean connected121314(Atom otherAtom)
public Bond getBondWithOrder(int bondOrder)
public boolean hasBondWithOrder(int bondOrder)
public double getBondingRadius()
public double getVDWRadius()
public double getBiggestDisplayedRadius()
public void setVDWRadius(double r)
public void setBallRadius(double r)
public double getBallRadius()
public void transformToScreen(Matrix m)
public boolean isAliphaticHydrogen()
public boolean isHBondDonor()
public boolean isHBondAcceptor()
public boolean hasAttributes()
public void setOrClearAttribute(int attribute,
boolean state)
public void setSolvent(boolean state)
public boolean isSolvent()
public void setCustomLabel(java.lang.String l)
public java.lang.String getCustomLabel()
public boolean isLabelled()
public void setLabelled(boolean state)
public void setSelected(boolean state)
public boolean isSelected()
public void setHeteroAtom(boolean state)
public boolean isHeteroAtom()
public void setTemporarilySelected(boolean state)
public boolean isTemporarilySelected()
public void setVisited(boolean state)
public boolean isVisited()
public void setWide(boolean state)
public boolean isWide()
public void setDisplayed(boolean state)
public boolean isSimpleDisplayed()
public boolean isDisplayed()
public int select(int state)
select in interface Selectablepublic java.lang.String selectStatement()
selectStatement in interface Selectablepublic int getHybridisation()
public java.lang.String toString()
Point3d
toString in class Point3dpublic void delete()
public void removeBond(Bond b)
public void removeAllBonds()
public java.util.Enumeration getProperties()
getProperties in interface GenericInterface
public java.lang.Object get(java.lang.Object key,
java.lang.Object def)
get in interface GenericInterface
public void edit(java.lang.String name,
java.lang.String value)
public java.lang.Object set(java.lang.Object key,
java.lang.Object value)
set in interface GenericInterfacepublic java.lang.Object getClassname()
getClassname in interface GenericInterfacepublic void setClassname(java.lang.String classname)
setClassname in interface GenericInterfacepublic java.util.Enumeration getParents(java.lang.Object type)
getParents in interface GenericInterfacepublic void addParent(GenericInterface parent)
addParent in interface GenericInterfacepublic void removeParent(GenericInterface parent)
removeParent in interface GenericInterfacepublic java.util.Enumeration getChildren(java.lang.Object type)
getChildren in interface GenericInterfacepublic void addChild(GenericInterface child)
addChild in interface GenericInterfacepublic void removeChild(GenericInterface child)
removeChild in interface GenericInterfacepublic void addListener(GenericEventInterface geh)
addListener in interface GenericInterfacepublic void removeListener(GenericEventInterface geh)
removeListener in interface GenericInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||