Package com.storedobject.svg
Class Polygon
-
Field Summary
Fields inherited from class com.storedobject.svg.AbstractPolyline
points -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.svg.AbstractPolyline
attributes, point, pointMethods inherited from class com.storedobject.svg.Node
compute, copy, createDocument, equals, escapeXml, extraContent, flipHorizontally, flipHorizontallyAroundOrigin, flipVertically, flipVerticallyAroundOrigin, getCoordinates, getId, getMargin, getSvg, hashCode, id, ID, IDValue, innerContent, moveTo, moveTo, rotate, rotateAround, rotateAround, rotateAroundCenter, scale, scale, scaleHeightTo, scaleTo, scaleWidthTo, toString, toString, transform, translate, translate
-
Constructor Details
-
Polygon
public Polygon()Constructor. -
Polygon
public Polygon(double... coordinates) Constructor.- Parameters:
coordinates- Coordinates (x1, y1, x2, y2, ...).
-
-
Method Details
-
of
Create a polygon.- Parameters:
coordinates- Coordinates (x1, y1, x2, y2, ...).- Returns:
- Polygon.
-