Interface Polygon

All Superinterfaces:
Serializable, Shape
All Known Implementing Classes:
PolygonImpl

public interface Polygon extends Shape

Interface for the polygon xml type.

Interface for the polygon xml type.
Describes a polygon by a list of Points
Implemented in PolygonImpl

  • Method Details

    • getPoints

      String getPoints()

      Gets the points of this polygon.

      Gets the points of this polygons as a whitespace separated list of value pairs (x,y).

      Returns:
      whitespace separated list of value pairs (x,y)
    • setPoints

      void setPoints(String points)

      Sets the points of this polygon.

      Sets the points of this polygon as a list of whitespace separated value pairs (x,y).

      Parameters:
      points - whitespace separated value pairs (x,y)
    • getCoordinates

      List<Point> getCoordinates()

      Gets the points of this polygon as list.

      Gets the points of this polygon as a list of Points.
      Note, that in the default implementation (and therefore XML schema), this property is XmlTransient, i.e.: not included in the XML document.
      Changes of values in the list are not reflected in the XML document after marshaling; to change values, use the setPoints(String) methods instead.

      Returns:
      points as java.util.List