Class Area

  • All Implemented Interfaces:
    IsArea

    public final class Area
    extends Object
    implements IsArea
    Contains the coordinates of an area.
    Used inside the canvas object factory.
    Author:
    Andrea "Stock" Stocchero
    See Also:
    CanvasObjectFactory
    • Constructor Detail

      • Area

        public Area()
    • Method Detail

      • getLeft

        public double getLeft()
        Returns the left coordinate.
        Specified by:
        getLeft in interface IsArea
        Returns:
        the left coordinate
      • setLeft

        public void setLeft​(double left)
        Sets the left coordinate.
        Parameters:
        left - the left to set
      • getTop

        public double getTop()
        Returns the top coordinate.
        Specified by:
        getTop in interface IsArea
        Returns:
        the top coordinate
      • setTop

        public void setTop​(double top)
        Sets the top coordinate.
        Parameters:
        top - the top to set
      • getRight

        public double getRight()
        Returns the right coordinate.
        Specified by:
        getRight in interface IsArea
        Returns:
        the right coordinate
      • setRight

        public void setRight​(double right)
        Sets the right coordinate.
        Parameters:
        right - the right to set
      • getBottom

        public double getBottom()
        Returns the bottom coordinate.
        Specified by:
        getBottom in interface IsArea
        Returns:
        the bottom coordinate
      • setBottom

        public void setBottom​(double bottom)
        Sets the bottom coordinate.
        Parameters:
        bottom - the bottom to set