PolygonCollection
-
class
Markup.Shapes.PolygonCollection() This class is useful for drawing a number of polygons which share the same visual appearance
Constructors
Methods
Methods
createPolygon
-
PolygonCollection.createPolygon() Creates a new array of points that represent a polygon. Add Point2 objects to the array to construct the polygon
Returns: new array which represents a polygon. Return type: [Point2]
getFillColor
-
PolygonCollection.getFillColor() Gets the fill color for this shape
Returns: the fill color Return type: Color
getFillOpacity
-
PolygonCollection.getFillOpacity() Gets the fill opacity for this shape
Returns: the fill opacity Return type: number
getPolygons
-
PolygonCollection.getPolygons() Returns: the polylines in this collection Return type: [[Point2]]
getStrokeColor
-
PolygonCollection.getStrokeColor() Gets the stroke color for this shape
Returns: the stroke color Return type: Color
getStrokeWidth
-
PolygonCollection.getStrokeWidth() Gets the stroke width for this shape in pixels
Returns: the stroke width in pixels Return type: number
setFillColor
setFillOpacity
-
PolygonCollection.setFillOpacity(fillOpacity) Arguments: - fillOpacity (
number()) – the fill opacity
Sets the fill opacity for this shape
Return type: void - fillOpacity (