Class SelectionPoint

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class SelectionPoint
    extends Point
    Stores the index in the point as well.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Index

        protected int m_Index
        the associated index.
    • Constructor Detail

      • SelectionPoint

        public SelectionPoint​(int x,
                              int y)
        Constructs a new SelectionPoint whose upper-left corner is specified as (x,y) and whose width and height are specified by the arguments of the same name. Uses -1 for associated index.
        Parameters:
        x - the specified X coordinate
        y - the specified Y coordinate
      • SelectionPoint

        public SelectionPoint​(int x,
                              int y,
                              int index)
        Constructs a new SelectionPoint whose upper-left corner is specified as (x,y) and whose width and height are specified by the arguments of the same name.
        Parameters:
        x - the specified X coordinate
        y - the specified Y coordinate
        index - the associated index
      • SelectionPoint

        public SelectionPoint​(Point p)
        Constructs a new SelectionPoint using the specified point.
        Parameters:
        p - the point
      • SelectionPoint

        public SelectionPoint​(Point p,
                              int index)
        Constructs a new SelectionPoint using the specified point.
        Parameters:
        p - the point
        index - the associated index
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the stored index.
        Returns:
        the index
      • setIndex

        public void setIndex​(int value)
        Sets the index.
        Parameters:
        value - the index