Interface Polygon
- All Superinterfaces:
Serializable,Shape
- All Known Implementing Classes:
PolygonImpl
Interface for the polygon xml type.
Interface for the polygon xml type.
Describes a polygon by a list of Points
Implemented in PolygonImpl
-
Method Summary
Methods inherited from interface com.priint.pubserver.metadata.base.Shape
getFill, getOpacity, getStroke, getStrokeWidth, setFill, setOpacity, setStroke, setStrokeWidth
-
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
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
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 thesetPoints(String)methods instead.- Returns:
- points as java.util.List
-