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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds 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.booleanTwo points equal if their atoms equal.getAtom()Gets the value of an attribute.voidgetLocation(DPoint3 p, CTransform3D t) Gets the location.getPoint(int i) Gets the point.getPointRef(int i, CTransform3D trot) Gets a point of the line.doublebooleanhasAtom()inthashCode()booleanbooleanIs the object selected?voidremoveAtom(MolAtom atom) Removes the atom from the corresponding molecule object.voidsetAttribute(String s, String v) Sets the value of an attribute.voidsetDifLoc(double... difLocDoubles) voidsetPointed(boolean pointed) voidsetRadius(double d) toString()Overrides Object.toString() to ease debugging.voidMethods inherited from class chemaxon.struc.graphics.MAtomSetPoint
checkValidity, connectToSgroupOfAtom, containsAtom, finishCloning, getAtomArray, getAtoms, getWeights, isTransformable, replaceAtom, setAtoms, setLocation, setWeights, transformMethods inherited from class chemaxon.struc.MPoint
calcCenter, distanceFrom, getLocation, getLocation, getPointCount, getPointRefCount, isChildOf, isInternalSelectableMethods inherited from class chemaxon.struc.MObject
addCdataAttributeKeys, addNotify, clearProperties, containsPoint, containsPropertyKey, distanceFrom, fixClonedPoints, getBackground, getColor, getContainerMObject, getLineColor, getProperty, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelectableNow, makeColor, propertyCount, propertyKeySet, propertySet, putProperty, removeChild, removeNotify, removeProperty, 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:MAtomSetPointTwo points equal if their atoms equal.- Overrides:
equalsin classMAtomSetPoint- Parameters:
o- the other point- Returns:
- true if they equal, false otherwise
-
toString
Description copied from class:MObjectOverrides 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:
toStringin 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:MAtomSetPointGets the point.- Overrides:
getPointin classMAtomSetPoint- Parameters:
i- the point index (must be 0)- Returns:
- the point's clone
-
clone
Description copied from class:MObjectCreates a clone.- Overrides:
clonein classMAtomSetPoint- Returns:
- the clone
-
getPointRef
Description copied from class:MPointGets a point of the line.- Overrides:
getPointRefin 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:MAtomSetPointGets the location. The atom set's location is the weighted average of the atom locations.- Overrides:
getLocationin classMAtomSetPoint- Parameters:
p- the output point objectt- the viewing transformation or null
-
addAttributeKeys
Description copied from class:MObjectAdds the attribute names to the specified list. CDATA attributes are not added.- Overrides:
addAttributeKeysin classMObject- Parameters:
l- the list
-
getAttribute
Description copied from class:MObjectGets the value of an attribute.- Overrides:
getAttributein classMObject- Parameters:
s- the attribute name- Returns:
- the value or null
-
setAttribute
Description copied from class:MObjectSets the value of an attribute.- Overrides:
setAttributein classMObject- Parameters:
s- the attribute namev- the attribute value
-
setDifLoc
public void setDifLoc(double... difLocDoubles) -
updateDifLoc
-
hashCode
public int hashCode()- Overrides:
hashCodein classMAtomSetPoint
-
removeAtom
Description copied from class:MObjectRemoves the atom from the corresponding molecule object.- Overrides:
removeAtomin classMObject- Parameters:
atom- the atom to remove
-
isSelected
public boolean isSelected()Description copied from class:MObjectIs the object selected?- Overrides:
isSelectedin classMObject- Returns:
- true if selected, false otherwise
-