Class MEFlowBasePoint

    • Constructor Detail

      • MEFlowBasePoint

        public MEFlowBasePoint()
        Contructs an empty point object.
      • MEFlowBasePoint

        public MEFlowBasePoint​(MolAtom a,
                               MPoint p)
        Contructs a point object.
        Parameters:
        a - the starting point of the arrow
        p - other end point of the arrow
      • MEFlowBasePoint

        public MEFlowBasePoint​(MEFlowBasePoint p)
        Copy constructor.
        Parameters:
        p - the point
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class MPoint
      • equals

        public boolean equals​(Object o)
        Two points equal if their atoms equal.
        Overrides:
        equals in class MPoint
        Parameters:
        o - the other point
        Returns:
        true if they equal, false otherwise
      • setStartEnd

        public void setStartEnd​(MolAtom a,
                                MPoint p)
        Sets the atoms.
        Parameters:
        a - the starting point of the arrow
        p - other end point of the arrow
      • getAtom

        public MolAtom getAtom()
        Gets the atom.
        Returns:
        the atom
      • getOtherEnd

        public MPoint getOtherEnd()
        Gets the atom at the other end point.
        Returns:
        the atom
      • containsAtom

        public boolean containsAtom​(MolAtom a)
        Checks if the atom set contains the specified atom object.
        Overrides:
        containsAtom in class MObject
        Returns:
        true if the atom set contains the specified object, false otherwise
      • replaceAtom

        public void replaceAtom​(MolAtom orig,
                                MolAtom a)
        Replaces a contained atom with another one.
        Overrides:
        replaceAtom in class MObject
        Parameters:
        orig - the original atom
        a - the new atom
      • getLocation

        public void getLocation​(DPoint3 out,
                                CTransform3D trot)
        Gets the location. The atom set's location is the weighted average of the atom locations.
        Overrides:
        getLocation in class MPoint
        Parameters:
        out - the output point object
        trot - the viewing transformation or null
      • setLocation

        public void setLocation​(DPoint3 p,
                                CTransform3D trot)
        Sets the atom coordinates.
        Overrides:
        setLocation in class MPoint
        Parameters:
        p - the new location
        trot - the viewing transformation or null
      • getPoint

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

        public void transform​(CTransform3D t,
                              int opts,
                              CTransform3D trot)
        Does not perform any operation. An atom set point's location is fixed to the atoms.
        Overrides:
        transform in class MPoint
        Parameters:
        t - the transformation matrix
        opts - transform options or 0
        trot - the viewing transformation or null
        See Also:
        MObject.TRANSFORM_DISTORT
      • isTransformable

        public boolean isTransformable()
        Is it a transformable object?
        Overrides:
        isTransformable in class MObject
        Returns:
        true if the object can be transformed, false otherwise
      • checkValidity

        public boolean checkValidity​(MDocument doc,
                                     Collection<MolAtom> invec)
        Is it a valid object in the document?
        Overrides:
        checkValidity in class MObject
        Parameters:
        doc - the document
        invec - collection of invalid atoms or null
        Returns:
        true if the object is valid, false if it contains an unknown atom
      • setElectronIndex

        public void setElectronIndex​(String label,
                                     int dotIndex)
      • setBaseElectronContainerIndex

        public void setBaseElectronContainerIndex​(int baseElectronContainerIndex)
      • setBaseElectronIndexInContainer

        public void setBaseElectronIndexInContainer​(int baseElectronIndexInContainer)