Package com.storedobject.svg
Class Polyline
-
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
-
Polyline
public Polyline()Constructor. -
Polyline
public Polyline(double... coordinates) Constructor.- Parameters:
coordinates- Coordinates (x1, y1, x2, y2, ...).
-
Polyline
Constructs a new instance of the Polyline class with the specified SVG tag and coordinates. This constructor initializes a polyline element with a specific tag and adds the provided points based on the coordinates supplied. If the tag is null, a default value is used.- Parameters:
tag- The SVG tag associated with this polyline. If null, a default value "polyline" will be used.coordinates- An array of coordinates (x1, y1, x2, y2, ...) representing the points of the polyline. Each pair of values corresponds to the x and y coordinates of a point.
-
-
Method Details
-
of
Create a polyline.- Parameters:
coordinates- Coordinates (x1, y1, x2, y2, ...).- Returns:
- Polyline.
-