Polygon
-
class
Markup.Shapes.Polygon() This class represents a shape bounded by the polyline formed from its points.
Methods
-
Markup.Shapes.Polygon.clearPoints() - clearPoints(): void
Removes all points from this polygon
Returns: void
-
Markup.Shapes.Polygon.getFillColor() inherited
getFillColor():ColorGets the fill color for this shape
Returns:
Colorthe fill color
-
Markup.Shapes.Polygon.getFillOpacity() inherited
getFillOpacity(): numberGets the fill opacity for this shape
Returns: number
the fill opacity
-
Markup.Shapes.Polygon.getPoints() - getPoints():
Point2[]Gets the points in this polyline
Returns:
Point2[]the points in this polygon
-
Markup.Shapes.Polygon.getStrokeColor() inherited
getStrokeColor():ColorGets the stroke color for this shape
Returns:
Colorthe stroke color
-
Markup.Shapes.Polygon.getStrokeWidth() inherited
getStrokeWidth(): numberGets the stroke width for this shape in pixels
Returns: number
the stroke width in pixels
-
Markup.Shapes.Polygon.pushPoint() - pushPoint(point:
Point2): voidAdds a point to the polygon
Parameters
point:
Point2the point to add to the polygonReturns: void
-
Markup.Shapes.Polygon.setFillColor() inherited
setFillColor(color:Color): voidSets the fill color for this shape
Parameters
color:
Colorthe fill colorReturns: void
-
Markup.Shapes.Polygon.setFillOpacity() inherited
setFillOpacity(fillOpacity: number): voidSets the fill opacity for this shape
Parameters
fillOpacity: number
the fill opacityReturns: void
-
Markup.Shapes.Polygon.setStrokeColor() inherited
setStrokeColor(color:Color): voidSets the stroke color for this shape
Parameters
color:
Colorthe stroke colorReturns: void
-
Markup.Shapes.Polygon.setStrokeWidth() inherited
setStrokeWidth(strokeWidth: number): voidSets the stroke width for this shape in pixels
Parameters
strokeWidth: number
the stroke width in pixelsReturns: void