Class MElectron

All Implemented Interfaces:
Serializable, Cloneable

@PublicApi public class MElectron extends MAtomSetPoint
See Also:
  • Constructor Details

    • MElectron

      public MElectron(DPoint3 p, MolAtom atom)
    • 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

      public boolean equals(Object o)
      Description copied from class: MAtomSetPoint
      Two points equal if their atoms equal.
      Overrides:
      equals in class MAtomSetPoint
      Parameters:
      o - the other point
      Returns:
      true if they equal, false otherwise
    • toString

      public String 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 class MAtomSetPoint
      Returns:
      a string representation of the object
    • setPointed

      public void setPointed(boolean pointed)
    • isPointed

      public boolean isPointed()
    • getAtom

      public MolAtom getAtom()
    • hasAtom

      public boolean hasAtom()
    • getPoint

      public MPoint getPoint(int i)
      Description copied from class: MAtomSetPoint
      Gets the point.
      Overrides:
      getPoint in class MAtomSetPoint
      Parameters:
      i - the point index (must be 0)
      Returns:
      the point's clone
    • clone

      public MElectron clone()
      Description copied from class: MObject
      Creates a clone.
      Overrides:
      clone in class MAtomSetPoint
      Returns:
      the clone
    • getPointRef

      public MPoint getPointRef(int i, CTransform3D trot)
      Description copied from class: MPoint
      Gets a point of the line.
      Overrides:
      getPointRef in class MPoint
      Parameters:
      i - the point index
      trot - the viewing transformation or null
      Returns:
      the point's reference
    • setRadius

      public void setRadius(double d)
    • getRadius

      public double getRadius()
    • getLocation

      public void getLocation(DPoint3 p, CTransform3D t)
      Description copied from class: MAtomSetPoint
      Gets the location. The atom set's location is the weighted average of the atom locations.
      Overrides:
      getLocation in class MAtomSetPoint
      Parameters:
      p - the output point object
      t - the viewing transformation or null
    • addAttributeKeys

      public void addAttributeKeys(List<String> l)
      Description copied from class: MObject
      Adds the attribute names to the specified list. CDATA attributes are not added.
      Overrides:
      addAttributeKeys in class MObject
      Parameters:
      l - the list
    • getAttribute

      public String getAttribute(String s)
      Description copied from class: MObject
      Gets the value of an attribute.
      Overrides:
      getAttribute in class MObject
      Parameters:
      s - the attribute name
      Returns:
      the value or null
    • setAttribute

      public void setAttribute(String s, String v)
      Description copied from class: MObject
      Sets the value of an attribute.
      Overrides:
      setAttribute in class MObject
      Parameters:
      s - the attribute name
      v - the attribute value
    • setDifLoc

      public void setDifLoc(double... difLocDoubles)
    • updateDifLoc

      public void updateDifLoc(DPoint3 p)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MAtomSetPoint
    • removeAtom

      public void removeAtom(MolAtom atom)
      Description copied from class: MObject
      Removes the atom from the corresponding molecule object.
      Overrides:
      removeAtom in class MObject
      Parameters:
      atom - the atom to remove
    • isSelected

      public boolean isSelected()
      Description copied from class: MObject
      Is the object selected?
      Overrides:
      isSelected in class MObject
      Returns:
      true if selected, false otherwise