Package com.storedobject.svg
Class Polyline
java.lang.Object
com.storedobject.svg.Svg
com.storedobject.svg.Element
com.storedobject.svg.Polyline
-
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
Fields -
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
-
Field Details
-
points
-
-
Constructor Details
-
Polyline
public Polyline()Constructor. -
Polyline
public Polyline(double... coordinates) Constructor.- Parameters:
coordinates- Coordinates (x1, y1, x2, y2, ...).
-
-
Method Details
-
addPoint
-
addPoint
public void addPoint(double x, double y) Add a point.- Parameters:
x- X coordinate.y- Y coordinate.
-
of
Create a polyline.- Parameters:
coordinates- Coordinates (x1, y1, x2, y2, ...).- Returns:
- Polyline.
-
point
Add a point.- Parameters:
x- X coordinate.y- Y coordinate.- Returns:
- Self.
-
point
-
build
-