Class AreaImpl

  • All Implemented Interfaces:
    Area, java.io.Serializable

    public class AreaImpl
    extends java.lang.Object
    implements java.io.Serializable, Area
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AreaImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Polygon> getPolygon()
      Gets the polygons of this area.
      java.util.List<Rect> getRect()
      Gets the rectangles of this area.
      void setPolygon​(java.util.List<Polygon> polygon)
      Sets the polygons for this area.
      void setRect​(java.util.List<Rect> rect)
      Sets the rectangles for this area.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AreaImpl

        public AreaImpl()
    • Method Detail

      • getRect

        public java.util.List<Rect> getRect()
        Description copied from interface: Area

        Gets the rectangles of this area.

        Gets the rectangles of this area. If the list contains more than one rectangle, the first one describes the rectangle in normal position and the second one including transformation (such as skew or rotation).

        Specified by:
        getRect in interface Area
        Returns:
        rectangle or list of rectangles of this area
      • setRect

        public void setRect​(java.util.List<Rect> rect)
        Description copied from interface: Area

        Sets the rectangles for this area.

        Sets the rectangles for this area. If the list contains more than one rectangle, the first one should describe the rectangle in normal position and the second one including transformation (such as skew or rotation).

        Specified by:
        setRect in interface Area
        Parameters:
        rect - the new rect
      • getPolygon

        public java.util.List<Polygon> getPolygon()
        Description copied from interface: Area

        Gets the polygons of this area.

        Gets the polygons of this area. Usually this list should not contain more than one entry (in other words: there is no semantics for the 2nd .. nth element in the list).

        Specified by:
        getPolygon in interface Area
        Returns:
        polygon or list of polygons of this area.
      • setPolygon

        public void setPolygon​(java.util.List<Polygon> polygon)
        Description copied from interface: Area

        Sets the polygons for this area.

        Sets the polygons for this area. Usually this list should not contain more than one entry (in other words: there is no semantics for the 2nd .. nth element in the list).

        Specified by:
        setPolygon in interface Area
        Parameters:
        polygon - or list of polygons for this area.