Circle

class Communicator.Markup.Shape.Circle()

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


Methods

getCenter

Circle.getCenter()

Gets the center of the circle

Return type

Point2()

Returns

the circle center

getFillColor

Circle.getFillColor()

Gets the fill color for this shape

Return type

Color()

Returns

the fill color

getFillOpacity

Circle.getFillOpacity()

Gets the fill opacity for this shape

Return type

number

Returns

the fill opacity

getRadius

Circle.getRadius()

Gets the radius of the circle

Return type

number

Returns

the circle radius

getStrokeColor

Circle.getStrokeColor()

Gets the stroke color for this shape

Return type

Color()

Returns

the stroke color

getStrokeWidth

Circle.getStrokeWidth()

Gets the stroke width for this shape in pixels

Return type

Pixels

Returns

the stroke width in pixels

set

Circle.set(center, radius)

Sets the values for the circle

Radius

the circle radius.

Arguments
  • center (Point2()) – the center point of the circle.

  • radius (number()) –

Return type

void

setCenter

Circle.setCenter(center)

Sets the center of the circle

Arguments
Return type

void

setFillColor

Circle.setFillColor(color)

Sets the fill color for this shape

Arguments
  • color (Color()) – the fill color

Return type

void

setFillOpacity

Circle.setFillOpacity(fillOpacity)

Sets the fill opacity for this shape

Arguments
  • fillOpacity (number()) – the fill opacity

Return type

void

setRadius

Circle.setRadius(radius)

Sets the radius of the circle

Arguments
  • radius (number()) – the circle radius

Return type

void

setStrokeColor

Circle.setStrokeColor(color)

Sets the stroke color for this shape

Arguments
  • color (Color()) – the stroke color

Return type

void

setStrokeWidth

Circle.setStrokeWidth(strokeWidth)

Sets the stroke width for this shape in pixels

Arguments
  • strokeWidth (Pixels) – the stroke width in pixels

Return type

void