Package com.storedobject.svg
Class Polygon
java.lang.Object
com.storedobject.svg.Svg
com.storedobject.svg.Element
com.storedobject.svg.Polyline
com.storedobject.svg.Polygon
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.svg.Svg
Svg.Anchor, Svg.Margin, Svg.Mover, Svg.Scale, Svg.ScaleTo -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.svg.Element
addStyle, isBuilt, removeStyle, stylesMethods inherited from class com.storedobject.svg.Svg
add, add, add, escapeXml, flipHorizontally, flipVertically, getFilledSvg, getHeight, getScaledSvg, getSvg, getWidth, getX, getY, margin, margin, scale, scale, scaleTo, scaleToHeight, scaleToWidth, toString
-
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.
-
point
-
build
-