Circle

class Markup.Shapes.Circle()

This class represents a single circle consisting of a center point and a radius.

Constructors

Markup.Shapes.Circle.constructor()
Circle(): Circle

Returns: Circle

Methods

Markup.Shapes.Circle.getCenter()
getCenter(): Point2

Gets the center of the circle

Returns: Point2

the circle center
Markup.Shapes.Circle.getFillColor()

inherited

getFillColor(): Color

Gets the fill color for this shape

Returns: Color

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

inherited

getFillOpacity(): number

Gets the fill opacity for this shape

Returns: number

the fill opacity
Markup.Shapes.Circle.getRadius()
getRadius(): number

Gets the radius of the circle

Returns: number

the circle radius
Markup.Shapes.Circle.getStrokeColor()

inherited

getStrokeColor(): Color

Gets the stroke color for this shape

Returns: Color

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

inherited

getStrokeWidth(): number

Gets the stroke width for this shape in pixels

Returns: number

the stroke width in pixels
Markup.Shapes.Circle.set()
set(center: Point2, radius: number): void

Sets the values for the circle

Parameters

center: Point2

the center point of the circle.

radius: number

Returns: void

Markup.Shapes.Circle.setCenter()
setCenter(center: Point2): void

Sets the center of the circle

Parameters

center: Point2

Returns: void

Markup.Shapes.Circle.setFillColor()

inherited

setFillColor(color: Color): void

Sets the fill color for this shape

Parameters

color: Color

the fill color

Returns: void

Markup.Shapes.Circle.setFillOpacity()

inherited

setFillOpacity(fillOpacity: number): void

Sets the fill opacity for this shape

Parameters

fillOpacity: number

the fill opacity

Returns: void

Markup.Shapes.Circle.setRadius()
setRadius(radius: number): void

Sets the radius of the circle

Parameters

radius: number

the circle radius

Returns: void

Markup.Shapes.Circle.setStrokeColor()

inherited

setStrokeColor(color: Color): void

Sets the stroke color for this shape

Parameters

color: Color

the stroke color

Returns: void

Markup.Shapes.Circle.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