public class MEFlowBasePoint extends MPoint
| Modifier and Type | Field and Description |
|---|---|
static String |
electronRadious |
static String |
lonePairCoordsLabel |
static String |
lonePairRealCoordsLabel |
static String |
radicalCoordsLabel |
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT| Constructor and Description |
|---|
MEFlowBasePoint()
Contructs an empty point object.
|
MEFlowBasePoint(MEFlowBasePoint p)
Copy constructor.
|
MEFlowBasePoint(MolAtom a,
MPoint p)
Contructs a point object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkValidity(MDocument doc,
Collection<MolAtom> invec)
Is it a valid object in the document?
|
MEFlowBasePoint |
clone()
Creates a clone.
|
void |
connectToSgroupOfAtom(SuperatomSgroup sg,
MolAtom a) |
boolean |
containsAtom(MolAtom a)
Checks if the atom set contains the specified atom object.
|
boolean |
equals(Object o)
Two points equal if their atoms equal.
|
void |
finishCloning(MDocument olddoc,
MDocument newdoc)
Finish cloning a document.
|
MolAtom |
getAtom()
Gets the atom.
|
void |
getLocation(DPoint3 out,
CTransform3D trot)
Gets the location.
|
MPoint |
getOtherEnd()
Gets the atom at the other end point.
|
MPoint |
getPoint(int i)
Gets the point.
|
int |
hashCode() |
boolean |
isTransformable()
Is it a transformable object?
|
void |
replaceAtom(MolAtom orig,
MolAtom a)
Replaces a contained atom with another one.
|
void |
setBaseElectronContainerIndex(int baseElectronContainerIndex) |
void |
setBaseElectronIndexInContainer(int baseElectronIndexInContainer) |
void |
setElectronIndex(String label,
int dotIndex) |
void |
setLocation(DPoint3 p,
CTransform3D trot)
Sets the atom coordinates.
|
void |
setStartEnd(MolAtom a,
MPoint p)
Sets the atoms.
|
void |
transform(CTransform3D t,
int opts,
CTransform3D trot)
Does not perform any operation.
|
calcCenter, distanceFrom, getLocation, getLocation, getPointCount, getPointRef, getPointRefCount, isChildOf, isInternalSelectableaddAttributeKeys, addCdataAttributeKeys, addNotify, addNotify, containsPoint, distanceFrom, fixClonedPoints, getAttribute, getBackground, getColor, getLineColor, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelectableNow, isSelected, makeColor, removeAtom, removeChild, removeNotify, removeNotify, setAttribute, setBackground, setColor, setLineColor, setSelected, toString, unselectContents, updateBoundingRect, updateBoundingRectpublic static final String radicalCoordsLabel
public static final String lonePairCoordsLabel
public static final String lonePairRealCoordsLabel
public static final String electronRadious
public MEFlowBasePoint()
public MEFlowBasePoint(MolAtom a, MPoint p)
a - the starting point of the arrowp - other end point of the arrowpublic MEFlowBasePoint(MEFlowBasePoint p)
p - the pointpublic boolean equals(Object o)
public MEFlowBasePoint clone()
MObjectpublic void setStartEnd(MolAtom a, MPoint p)
a - the starting point of the arrowp - other end point of the arrowpublic MolAtom getAtom()
public MPoint getOtherEnd()
public boolean containsAtom(MolAtom a)
containsAtom in class MObjectpublic void connectToSgroupOfAtom(SuperatomSgroup sg, MolAtom a)
connectToSgroupOfAtom in class MObjectpublic void replaceAtom(MolAtom orig, MolAtom a)
replaceAtom in class MObjectorig - the original atoma - the new atompublic void getLocation(DPoint3 out, CTransform3D trot)
getLocation in class MPointout - the output point objecttrot - the viewing transformation or nullpublic void setLocation(DPoint3 p, CTransform3D trot)
setLocation in class MPointp - the new locationtrot - the viewing transformation or nullpublic MPoint getPoint(int i)
public void transform(CTransform3D t, int opts, CTransform3D trot)
transform in class MPointt - the transformation matrixopts - transform options or 0trot - the viewing transformation or nullMObject.TRANSFORM_DISTORTpublic boolean isTransformable()
isTransformable in class MObjectpublic boolean checkValidity(MDocument doc, Collection<MolAtom> invec)
checkValidity in class MObjectdoc - the documentinvec - collection of invalid atoms or nullpublic void finishCloning(MDocument olddoc, MDocument newdoc)
finishCloning in class MObjectpublic void setElectronIndex(String label, int dotIndex)
public void setBaseElectronContainerIndex(int baseElectronContainerIndex)
public void setBaseElectronIndexInContainer(int baseElectronIndexInContainer)