Polygon

class Markup.Shapes.Polygon()

This class represents a shape bounded by the polyline formed from its points.

Constructors

Markup.Shapes.Polygon.constructor()
Polygon(): Polygon

Returns: Polygon

Methods

Markup.Shapes.Polygon.clearPoints()
clearPoints(): void

Removes all points from this polygon

Returns: void

Markup.Shapes.Polygon.getFillColor()

inherited

getFillColor(): Color

Gets the fill color for this shape

Returns: Color

the fill color
Markup.Shapes.Polygon.getFillOpacity()

inherited

getFillOpacity(): number

Gets 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(): Color

Gets the stroke color for this shape

Returns: Color

the stroke color
Markup.Shapes.Polygon.getStrokeWidth()

inherited

getStrokeWidth(): number

Gets the stroke width for this shape in pixels

Returns: number

the stroke width in pixels
Markup.Shapes.Polygon.pushPoint()
pushPoint(point: Point2): void

Adds a point to the polygon

Parameters

point: Point2

the point to add to the polygon

Returns: void

Markup.Shapes.Polygon.setFillColor()

inherited

setFillColor(color: Color): void

Sets the fill color for this shape

Parameters

color: Color

the fill color

Returns: void

Markup.Shapes.Polygon.setFillOpacity()

inherited

setFillOpacity(fillOpacity: number): void

Sets the fill opacity for this shape

Parameters

fillOpacity: number

the fill opacity

Returns: void

Markup.Shapes.Polygon.setStrokeColor()

inherited

setStrokeColor(color: Color): void

Sets the stroke color for this shape

Parameters

color: Color

the stroke color

Returns: void

Markup.Shapes.Polygon.setStrokeWidth()

inherited

setStrokeWidth(strokeWidth: number): void

Sets the stroke width for this shape in pixels

Parameters

strokeWidth: number

the stroke width in pixels

Returns: void