Package chemaxon.struc.graphics
Class MMoleculeMovie
java.lang.Object
chemaxon.struc.MObject
chemaxon.struc.graphics.MMoleculeMovie
- All Implemented Interfaces:
Serializable,Cloneable
Molecule animation.
- Since:
- Marvin 4.0, 06/30/2005
- See Also:
-
Field Summary
Fields inherited from class chemaxon.struc.MObject
TRANSFORM_DISTORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCopy constructor.MMoleculeMovie(Molecule[] mols) Contructs a molecule animation. -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcCenter(DPoint3 p, CTransform3D t) Calculates the geometrical center.clone()Creates a clone.booleanChecks if the atom set contains the specified atom object.doubledistanceFrom(double x, double y, CTransform3D t) Gets the 2D distance from the specified point.intGets the current frame index.Gets the stored molecule graph.getMolecule(int i) Gets the specified frame.intGets the number of frames.Molecule[]Gets all molecules.getPoint(int i) Gets a point of the object.intGets the number of points (atoms).booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanisEmpty()A chemical structure object is empty if the molecule graph is empty.voidremoveAtom(MolAtom atom) Removes the atom from the corresponding molecule object.voidsetCurrentFrameIndex(int i) Sets the current frame index.voidsetSelected(boolean s) Selects or unselects the object.voidtransform(CTransform3D t, int opts, CTransform3D trot) Transforms all points.voidUnselects atoms.Methods inherited from class chemaxon.struc.MObject
addAttributeKeys, addCdataAttributeKeys, addNotify, checkValidity, clearProperties, connectToSgroupOfAtom, containsPoint, containsPropertyKey, distanceFrom, finishCloning, fixClonedPoints, getAttribute, getBackground, getColor, getContainerMObject, getLineColor, getPointRef, getPointRefCount, getProperty, hasBackground, hasColor, hasLineColor, isChildOf, isInternalSelectable, isReactionArrow, isSelectableNow, isSelected, isTransformable, makeColor, propertyCount, propertyKeySet, propertySet, putProperty, removeChild, removeNotify, removeProperty, replaceAtom, setAttribute, setBackground, setColor, setLineColor, toString, updateBoundingRect, updateBoundingRect
-
Constructor Details
-
MMoleculeMovie
Contructs a molecule animation.- Parameters:
mols- the molecules
-
MMoleculeMovie
Copy constructor.- Parameters:
mma- the original object
-
-
Method Details
-
getMoleculeCount
public int getMoleculeCount()Gets the number of frames.- Returns:
- the number of frames
-
getMolecule
Gets the specified frame.- Returns:
- a molecule
-
getMolecules
Gets all molecules.- Returns:
- molecules
-
getCurrentFrameIndex
public int getCurrentFrameIndex()Gets the current frame index.- Returns:
- the frame index
-
setCurrentFrameIndex
public void setCurrentFrameIndex(int i) Sets the current frame index.- Parameters:
i- the frame index
-
getCurrentMolecule
Gets the stored molecule graph.- Returns:
- the molecule graph
-
clone
Creates a clone. -
isEmpty
public boolean isEmpty()A chemical structure object is empty if the molecule graph is empty. -
getPointCount
public int getPointCount()Gets the number of points (atoms).- Specified by:
getPointCountin classMObject- Returns:
- the number of points
-
getPoint
Gets a point of the object. -
containsAtom
Checks if the atom set contains the specified atom object.- Overrides:
containsAtomin classMObject- Returns:
- true if the atom set contains the specified object, false otherwise
-
transform
Transforms all points. -
calcCenter
Calculates the geometrical center.- Specified by:
calcCenterin classMObject- Parameters:
p- store the coordinates heret- the transformation matrix or null- Since:
- Marvin 4.1, 04/28/2006
-
distanceFrom
Gets the 2D distance from the specified point.- Specified by:
distanceFromin classMObject- Parameters:
x- the x coordinatey- the y coordinatet- transformation or null
-
setSelected
public void setSelected(boolean s) Selects or unselects the object.- Overrides:
setSelectedin classMObject- Parameters:
s- use true to select, false to unselect
-
hasSelection
Deprecated, for removal: This API element is subject to removal in a future version.Checks the existence of the selection.- Returns:
- true if selection exists, false otherwise
-
unselectContents
public void unselectContents()Unselects atoms.- Overrides:
unselectContentsin classMObject
-
removeAtom
Description copied from class:MObjectRemoves the atom from the corresponding molecule object.- Overrides:
removeAtomin classMObject- Parameters:
atom- the atom to remove
-