Package chemaxon.struc.graphics
Class MElectron
java.lang.Object
chemaxon.struc.MObject
chemaxon.struc.MPoint
chemaxon.struc.graphics.MAtomSetPoint
chemaxon.struc.graphics.MElectron
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class chemaxon.struc.MObject
TRANSFORM_DISTORT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the attribute names to the specified list.clone()
Creates a clone.Deprecated, for removal: This API element is subject to removal in a future version.boolean
Two points equal if their atoms equal.getAtom()
Gets the value of an attribute.void
getLocation
(DPoint3 p, CTransform3D t) Gets the location.getPoint
(int i) Gets the point.getPointRef
(int i, CTransform3D trot) Gets a point of the line.double
boolean
hasAtom()
int
hashCode()
boolean
boolean
Is the object selected?void
removeAtom
(MolAtom atom) Removes the atom from the corresponding molecule object.void
setAttribute
(String s, String v) Sets the value of an attribute.void
setDifLoc
(double... difLocDoubles) void
setPointed
(boolean pointed) void
setRadius
(double d) toString()
Overrides Object.toString() to ease debugging.void
Methods inherited from class chemaxon.struc.graphics.MAtomSetPoint
checkValidity, connectToSgroupOfAtom, containsAtom, finishCloning, getAtomArray, getAtoms, getWeights, isTransformable, replaceAtom, setAtoms, setLocation, setWeights, transform
Methods inherited from class chemaxon.struc.MPoint
calcCenter, distanceFrom, getLocation, getLocation, getPointCount, getPointRefCount, isChildOf, isInternalSelectable
Methods inherited from class chemaxon.struc.MObject
addCdataAttributeKeys, addNotify, containsPoint, distanceFrom, fixClonedPoints, getBackground, getColor, getContainerMObject, getLineColor, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelectableNow, makeColor, removeChild, removeNotify, setBackground, setColor, setLineColor, setSelected, unselectContents, updateBoundingRect, updateBoundingRect
-
Constructor Details
-
MElectron
-
MElectron
public MElectron()
-
-
Method Details
-
collectMElectronsOfAtom
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static List<MElectron> collectMElectronsOfAtom(MolAtom atom) Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Description copied from class:MAtomSetPoint
Two points equal if their atoms equal.- Overrides:
equals
in classMAtomSetPoint
- Parameters:
o
- the other point- Returns:
- true if they equal, false otherwise
-
toString
Description copied from class:MObject
Overrides Object.toString() to ease debugging. Returns a string consisting of the classname (without the package name!), the at-sign character `@
', and the unsigned hexadecimal representation of the hash code of the object.- Overrides:
toString
in classMAtomSetPoint
- Returns:
- a string representation of the object
-
setPointed
public void setPointed(boolean pointed) -
isPointed
public boolean isPointed() -
getAtom
-
hasAtom
public boolean hasAtom() -
getPoint
Description copied from class:MAtomSetPoint
Gets the point.- Overrides:
getPoint
in classMAtomSetPoint
- Parameters:
i
- the point index (must be 0)- Returns:
- the point's clone
-
clone
Description copied from class:MObject
Creates a clone.- Overrides:
clone
in classMAtomSetPoint
- Returns:
- the clone
-
getPointRef
Description copied from class:MPoint
Gets a point of the line.- Overrides:
getPointRef
in classMPoint
- Parameters:
i
- the point indextrot
- the viewing transformation or null- Returns:
- the point's reference
-
setRadius
public void setRadius(double d) -
getRadius
public double getRadius() -
getLocation
Description copied from class:MAtomSetPoint
Gets the location. The atom set's location is the weighted average of the atom locations.- Overrides:
getLocation
in classMAtomSetPoint
- Parameters:
p
- the output point objectt
- the viewing transformation or null
-
addAttributeKeys
Description copied from class:MObject
Adds the attribute names to the specified list. CDATA attributes are not added.- Overrides:
addAttributeKeys
in classMObject
- Parameters:
l
- the list
-
getAttribute
Description copied from class:MObject
Gets the value of an attribute.- Overrides:
getAttribute
in classMObject
- Parameters:
s
- the attribute name- Returns:
- the value or null
-
setAttribute
Description copied from class:MObject
Sets the value of an attribute.- Overrides:
setAttribute
in classMObject
- Parameters:
s
- the attribute namev
- the attribute value
-
setDifLoc
public void setDifLoc(double... difLocDoubles) -
updateDifLoc
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMAtomSetPoint
-
removeAtom
Description copied from class:MObject
Removes the atom from the corresponding molecule object.- Overrides:
removeAtom
in classMObject
- Parameters:
atom
- the atom to remove
-
isSelected
public boolean isSelected()Description copied from class:MObject
Is the object selected?- Overrides:
isSelected
in classMObject
- Returns:
- true if selected, false otherwise
-