Circle

class wv.Markup.Shapes.Circle()

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

Constructors

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

Returns: Circle

Methods

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

Gets the center of the circle

Returns: Point2

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

inherited

getFillColor(): Color

Gets the fill color for this shape

Returns: Color

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

inherited

getFillOpacity(): number

Gets the fill opacity for this shape

Returns: number

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

Gets the radius of the circle

Returns: number

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

inherited

getStrokeColor(): Color

Gets the stroke color for this shape

Returns: Color

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

inherited

getStrokeWidth(): number

Gets the stroke width for this shape in pixels

Returns: number

the stroke width in pixels
wv.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

the circle radius.

Returns: void

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

Sets the center of the circle

Parameters

center: Point2

circle center

Returns: void

wv.Markup.Shapes.Circle.setFillColor()

inherited

setFillColor(color: Color): void

Sets the fill color for this shape

Parameters

color: Color

the fill color

Returns: void

wv.Markup.Shapes.Circle.setFillOpacity()

inherited

setFillOpacity(fillOpacity: number): void

Sets the fill opacity for this shape

Parameters

fillOpacity: number

the fill opacity

Returns: void

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

Sets the radius of the circle

Parameters

radius: number

the circle radius

Returns: void

wv.Markup.Shapes.Circle.setStrokeColor()

inherited

setStrokeColor(color: Color): void

Sets the stroke color for this shape

Parameters

color: Color

the stroke color

Returns: void

wv.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