Circle
- class Communicator.Markup.Shape.Circle()
This class represents a single circle consisting of a center point and a radius.
Methods
Methods
getCenter
- Communicator.Markup.Shape.Circle.getCenter()
Gets the center of the circle
- Return type
Communicator.Point2
- Returns
the circle center
getFillColor
- Communicator.Markup.Shape.Circle.getFillColor()
Gets the fill color for this shape
- Return type
Communicator.Color
- Returns
the fill color
getFillOpacity
- Communicator.Markup.Shape.Circle.getFillOpacity()
Gets the fill opacity for this shape
- Return type
number
- Returns
the fill opacity
getRadius
- Communicator.Markup.Shape.Circle.getRadius()
Gets the radius of the circle
- Return type
number
- Returns
the circle radius
getStrokeColor
- Communicator.Markup.Shape.Circle.getStrokeColor()
Gets the stroke color for this shape
- Return type
Communicator.Color
- Returns
the stroke color
getStrokeWidth
- Communicator.Markup.Shape.Circle.getStrokeWidth()
Gets the stroke width for this shape in pixels
- Return type
Communicator.Pixels
- Returns
the stroke width in pixels
set
- Communicator.Markup.Shape.Circle.set(center, radius)
Sets the values for the circle
- Arguments
center (
Communicator.Point2()
) – the center point of the circle.radius (
number()
) –
- Return type
void
setCenter
- Communicator.Markup.Shape.Circle.setCenter(center)
Sets the center of the circle
- Arguments
center (
Communicator.Point2()
) –
- Return type
void
setFillColor
- Communicator.Markup.Shape.Circle.setFillColor(color)
Sets the fill color for this shape
- Arguments
color (
Communicator.Color()
) – the fill color
- Return type
void
setFillOpacity
- Communicator.Markup.Shape.Circle.setFillOpacity(fillOpacity)
Sets the fill opacity for this shape
- Arguments
fillOpacity (
number()
) – the fill opacity
- Return type
void
setRadius
- Communicator.Markup.Shape.Circle.setRadius(radius)
Sets the radius of the circle
- Arguments
radius (
number()
) – the circle radius
- Return type
void