PolygonCollection
-
class
Markup.Shapes.PolygonCollection() This class is useful for drawing a number of polygons which share the same visual appearance
Constructors
-
Markup.Shapes.PolygonCollection.constructor() - PolygonCollection():
PolygonCollectionReturns:
PolygonCollection
Methods
-
Markup.Shapes.PolygonCollection.clear() - clear(): void
Removes all polygons from the collection
Returns: void
-
Markup.Shapes.PolygonCollection.createPolygon() - createPolygon():
Point2[]Creates a new array of points that represent a polygon. Add Point2 objects to the array to construct the polygon
Returns:
Point2[]new array which represents a polygon.
-
Markup.Shapes.PolygonCollection.getFillColor() inherited
getFillColor():ColorGets the fill color for this shape
Returns:
Colorthe fill color
-
Markup.Shapes.PolygonCollection.getFillOpacity() inherited
getFillOpacity(): numberGets the fill opacity for this shape
Returns: number
the fill opacity
-
Markup.Shapes.PolygonCollection.getPolygons() - getPolygons():
Point2[][]Returns:
Point2[][]the polylines in this collection
-
Markup.Shapes.PolygonCollection.getStrokeColor() inherited
getStrokeColor():ColorGets the stroke color for this shape
Returns:
Colorthe stroke color
-
Markup.Shapes.PolygonCollection.getStrokeWidth() inherited
getStrokeWidth(): numberGets the stroke width for this shape in pixels
Returns: number
the stroke width in pixels
-
Markup.Shapes.PolygonCollection.setFillColor() inherited
setFillColor(color:Color): voidSets the fill color for this shape
Parameters
color:
Colorthe fill colorReturns: void
-
Markup.Shapes.PolygonCollection.setFillOpacity() inherited
setFillOpacity(fillOpacity: number): voidSets the fill opacity for this shape
Parameters
fillOpacity: number
the fill opacityReturns: void
-
Markup.Shapes.PolygonCollection.setStrokeColor() inherited
setStrokeColor(color:Color): voidSets the stroke color for this shape
Parameters
color:
Colorthe stroke colorReturns: void
-
Markup.Shapes.PolygonCollection.setStrokeWidth() inherited
setStrokeWidth(strokeWidth: number): voidSets the stroke width for this shape in pixels
Parameters
strokeWidth: number
the stroke width in pixelsReturns: void