Class Selection<T extends Comparable<T>,U extends Comparable<U>>

    • Constructor Detail

      • Selection

        public Selection(T x1,
                         T x2,
                         U y1,
                         U y2)
        Create a selection.
        Parameters:
        x1 - the first x value.
        x2 - the second x value.
        y1 - the first y value.
        y2 - the second y value.
    • Method Detail

      • getX1

        public T getX1()
        Returns:
        the first x value.
      • getX2

        public T getX2()
        Returns:
        the second x value.
      • getY1

        public U getY1()
        Returns:
        the first y value.
      • getY2

        public U getY2()
        Returns:
        the second y value.
      • setX1

        public void setX1(T x1)
        Parameters:
        x1 - the first x value.
      • setX2

        public void setX2(T x2)
        Parameters:
        x2 - the second x value.
      • setY1

        public void setY1(U y1)
        Parameters:
        y1 - the first y value.
      • setY2

        public void setY2(U y2)
        Parameters:
        y2 - the second y value.
      • toString

        public String toString()