Interface Polygon
-
- All Superinterfaces:
java.io.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 ofPoints
Implemented inPolygonImpl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Point>getCoordinates()Gets the points of this polygon as list.java.lang.StringgetPoints()Gets the points of this polygon.voidsetPoints(java.lang.String points)Sets the points of this polygon.-
Methods inherited from interface com.priint.pubserver.metadata.base.Shape
getFill, getOpacity, getStroke, getStrokeWidth, setFill, setOpacity, setStroke, setStrokeWidth
-
-
-
-
Method Detail
-
getPoints
java.lang.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(java.lang.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
java.util.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 thesetPoints(String)methods instead.- Returns:
- points as java.util.List
-
-