Class SelectionRectangle

    • Field Detail

      • m_Index

        protected int m_Index
        the associated index.
    • Constructor Detail

      • SelectionRectangle

        public SelectionRectangle​(int x,
                                  int y,
                                  int width,
                                  int height)
        Constructs a new SelectionRectangle 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
        width - the width of the SelectionRectangle
        height - the height of the SelectionRectangle
      • SelectionRectangle

        public SelectionRectangle​(int x,
                                  int y,
                                  int width,
                                  int height,
                                  int index)
        Constructs a new SelectionRectangle 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
        width - the width of the SelectionRectangle
        height - the height of the SelectionRectangle
        index - the associated index
      • SelectionRectangle

        public SelectionRectangle​(Rectangle r)
        Constructs a new SelectionRectangle using the specified rectangle.
        Parameters:
        r - the rectangle
      • SelectionRectangle

        public SelectionRectangle​(Rectangle r,
                                  int index)
        Constructs a new SelectionRectangle using the specified rectangle.
        Parameters:
        r - the rectangle
        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