Polygon
- class Communicator.Markup.Shape.Polygon()
This class represents a shape bounded by the polyline formed from its points.
Methods
Methods
clearPoints
- Communicator.Markup.Shape.Polygon.clearPoints()
Removes all points from this polygon
- Return type
void
getFillColor
- Communicator.Markup.Shape.Polygon.getFillColor()
Gets the fill color for this shape
- Return type
Communicator.Color
- Returns
the fill color
getFillOpacity
- Communicator.Markup.Shape.Polygon.getFillOpacity()
Gets the fill opacity for this shape
- Return type
number
- Returns
the fill opacity
getPoints
- Communicator.Markup.Shape.Polygon.getPoints()
Gets the points in this polyline
- Return type
[Communicator.Point2]
- Returns
the points in this polygon
getStrokeColor
- Communicator.Markup.Shape.Polygon.getStrokeColor()
Gets the stroke color for this shape
- Return type
Communicator.Color
- Returns
the stroke color
getStrokeWidth
- Communicator.Markup.Shape.Polygon.getStrokeWidth()
Gets the stroke width for this shape in pixels
- Return type
Communicator.Pixels
- Returns
the stroke width in pixels
pushPoint
- Communicator.Markup.Shape.Polygon.pushPoint(point)
Adds a point to the polygon
- Arguments
point (
Communicator.Point2()
) – the point to add to the polygon
- Return type
void
setFillColor
- Communicator.Markup.Shape.Polygon.setFillColor(color)
Sets the fill color for this shape
- Arguments
color (
Communicator.Color()
) – the fill color
- Return type
void
setFillOpacity
- Communicator.Markup.Shape.Polygon.setFillOpacity(fillOpacity)
Sets the fill opacity for this shape
- Arguments
fillOpacity (
number()
) – the fill opacity
- Return type
void