Package chemaxon.struc.graphics
Class MEFlowBasePoint
java.lang.Object
chemaxon.struc.MObject
chemaxon.struc.MPoint
chemaxon.struc.graphics.MEFlowBasePoint
- All Implemented Interfaces:
Serializable,Cloneable
Electron flow arrow base point. May be fixed to a lone pair.
- Since:
- Marvin 5.3, 09/25/2009
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class chemaxon.struc.MObject
TRANSFORM_DISTORT -
Constructor Summary
ConstructorsConstructorDescriptionContructs an empty point object.Copy constructor.MEFlowBasePoint(MolAtom a, MPoint p) Contructs a point object. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckValidity(MDocument doc, Collection<MolAtom> invec) Is it a valid object in the document?clone()Creates a clone.voidbooleanChecks if the atom set contains the specified atom object.booleanTwo points equal if their atoms equal.voidfinishCloning(MDocument olddoc, MDocument newdoc) Finish cloning a document.getAtom()Gets the atom.voidgetLocation(DPoint3 out, CTransform3D trot) Gets the location.Gets the atom at the other end point.getPoint(int i) Gets the point.inthashCode()booleanIs it a transformable object?voidreplaceAtom(MolAtom orig, MolAtom a) Replaces a contained atom with another one.voidsetBaseElectronContainerIndex(int baseElectronContainerIndex) voidsetBaseElectronIndexInContainer(int baseElectronIndexInContainer) voidsetElectronIndex(String label, int dotIndex) voidsetLocation(DPoint3 p, CTransform3D trot) Sets the atom coordinates.voidsetStartEnd(MolAtom a, MPoint p) Sets the atoms.voidtransform(CTransform3D t, int opts, CTransform3D trot) Does not perform any operation.Methods inherited from class chemaxon.struc.MPoint
calcCenter, distanceFrom, getLocation, getLocation, getPointCount, getPointRef, getPointRefCount, isChildOf, isInternalSelectable, toStringMethods inherited from class chemaxon.struc.MObject
addAttributeKeys, addCdataAttributeKeys, addNotify, clearProperties, containsPoint, containsPropertyKey, distanceFrom, fixClonedPoints, getAttribute, getBackground, getColor, getContainerMObject, getLineColor, getProperty, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelectableNow, isSelected, makeColor, propertyCount, propertyKeySet, propertySet, putProperty, removeAtom, removeChild, removeNotify, removeProperty, setAttribute, setBackground, setColor, setLineColor, setSelected, unselectContents, updateBoundingRect, updateBoundingRect
-
Field Details
-
radicalCoordsLabel
- See Also:
-
lonePairCoordsLabel
- See Also:
-
lonePairRealCoordsLabel
- See Also:
-
electronRadious
- See Also:
-
-
Constructor Details
-
MEFlowBasePoint
public MEFlowBasePoint()Contructs an empty point object. -
MEFlowBasePoint
Contructs a point object.- Parameters:
a- the starting point of the arrowp- other end point of the arrow
-
MEFlowBasePoint
Copy constructor.- Parameters:
p- the point
-
-
Method Details
-
hashCode
public int hashCode() -
equals
Two points equal if their atoms equal. -
clone
Description copied from class:MObjectCreates a clone. -
setStartEnd
Sets the atoms.- Parameters:
a- the starting point of the arrowp- other end point of the arrow
-
getAtom
Gets the atom.- Returns:
- the atom
-
getOtherEnd
Gets the atom at the other end point.- Returns:
- the atom
-
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
-
connectToSgroupOfAtom
- Overrides:
connectToSgroupOfAtomin classMObject
-
replaceAtom
Replaces a contained atom with another one.- Overrides:
replaceAtomin classMObject- Parameters:
orig- the original atoma- the new atom
-
getLocation
Gets the location. The atom set's location is the weighted average of the atom locations.- Overrides:
getLocationin classMPoint- Parameters:
out- the output point objecttrot- the viewing transformation or null
-
setLocation
Sets the atom coordinates.- Overrides:
setLocationin classMPoint- Parameters:
p- the new locationtrot- the viewing transformation or null
-
getPoint
Gets the point. -
transform
Does not perform any operation. An atom set point's location is fixed to the atoms. -
isTransformable
public boolean isTransformable()Is it a transformable object?- Overrides:
isTransformablein classMObject- Returns:
- true if the object can be transformed, false otherwise
-
checkValidity
Is it a valid object in the document?- Overrides:
checkValidityin classMObject- Parameters:
doc- the documentinvec- collection of invalid atoms or null- Returns:
- true if the object is valid, false if it contains an unknown atom
-
finishCloning
Finish cloning a document. Called by the copy constructor.- Overrides:
finishCloningin classMObject
-
setElectronIndex
-
setBaseElectronContainerIndex
public void setBaseElectronContainerIndex(int baseElectronContainerIndex) -
setBaseElectronIndexInContainer
public void setBaseElectronIndexInContainer(int baseElectronIndexInContainer)
-