Class PolygonImpl
- java.lang.Object
-
- com.priint.pubserver.metadata.xml.base.ShapeImpl
-
- com.priint.pubserver.metadata.xml.base.PolygonImpl
-
public class PolygonImpl extends ShapeImpl implements Polygon
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolygonImpl()
-
Method Summary
All Methods Instance Methods Concrete 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 class com.priint.pubserver.metadata.xml.base.ShapeImpl
getFill, getOpacity, getStroke, getStrokeWidth, setFill, setOpacity, setStroke, setStrokeWidth
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.priint.pubserver.metadata.base.Shape
getFill, getOpacity, getStroke, getStrokeWidth, setFill, setOpacity, setStroke, setStrokeWidth
-
-
-
-
Method Detail
-
getPoints
public java.lang.String getPoints()
Description copied from interface:PolygonGets the points of this polygon.
Gets the points of this polygons as a whitespace separated list of value pairs (x,y).
-
setPoints
public void setPoints(java.lang.String points)
Description copied from interface:PolygonSets the points of this polygon.
Sets the points of this polygon as a list of whitespace separated value pairs (x,y).
-
getCoordinates
public java.util.List<Point> getCoordinates()
Description copied from interface:PolygonGets 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 thePolygon.setPoints(String)methods instead.- Specified by:
getCoordinatesin interfacePolygon- Returns:
- points as java.util.List
-
-