|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.MObject
chemaxon.struc.graphics.MChemicalStruct
Molecule graph object.
| Field Summary |
| Fields inherited from class chemaxon.struc.MObject |
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT |
| Constructor Summary | |
protected |
MChemicalStruct(MChemicalStruct mcs)
Copy constructor. |
|
MChemicalStruct(MoleculeGraph m)
Contructs a molecule graph object. |
| Method Summary | |
void |
calcCenter(DPoint3 p)
Calculates the geometrical center. |
java.lang.Object |
clone()
Creates a clone. |
boolean |
containsAtom(MolAtom a)
Checks if the atom set contains the specified atom object. |
double |
distanceFrom(double x,
double y,
CTransform3D t)
Gets the 2D distance from the specified point. |
MoleculeGraph |
getMoleculeGraph()
Gets the stored molecule graph. |
MPoint |
getPoint(int i)
Gets a point of the object. |
int |
getPointCount()
Gets the number of points (atoms). |
boolean |
hasSelection()
Checks the existence of the selection. |
boolean |
isEmpty()
A chemical structure object is empty if the molecule graph is empty. |
void |
setSelected(boolean s)
Selects or unselects the object. |
void |
transform(CTransform3D t,
int opts)
Transforms all points. |
void |
unselectContents()
Unselects atoms. |
| Methods inherited from class chemaxon.struc.MObject |
addAttributeKeys, addCdataAttributeKeys, addNotify, checkValidity, distanceFrom, finishCloning, getAttribute, getBackground, getColor, getLineColor, getPointRef, getPointRefCount, hasBackground, hasColor, hasLineColor, isChildOf, isInternalSelectable, isSelectableNow, isSelected, isTransformable, makeColor, makeColorString, paint, removeChild, removeNotify, replaceAtom, setAttribute, setBackground, setColor, setLineColor |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MChemicalStruct(MoleculeGraph m)
m - the molecule graphprotected MChemicalStruct(MChemicalStruct mcs)
mcs - the original object| Method Detail |
public MoleculeGraph getMoleculeGraph()
public java.lang.Object clone()
clone in class MObjectpublic boolean isEmpty()
isEmpty in class MObjectpublic int getPointCount()
getPointCount in class MObjectpublic MPoint getPoint(int i)
getPoint in class MObjecti - the point index
public boolean containsAtom(MolAtom a)
containsAtom in class MObject
public void transform(CTransform3D t,
int opts)
transform in class MObjectt - the transformation matrixopts - transform options or 0MObject.TRANSFORM_DISTORTpublic void calcCenter(DPoint3 p)
calcCenter in class MObjectp - store the coordinates here
public double distanceFrom(double x,
double y,
CTransform3D t)
distanceFrom in class MObjectx - the x coordinatey - the y coordinatet - transformation or nullpublic void setSelected(boolean s)
setSelected in class MObjects - use true to select, false to unselectpublic boolean hasSelection()
public void unselectContents()
unselectContents in class MObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||