RectangleBase

class Communicator.Markup.Shape.RectangleBase()

This is a base class for rectangular markup objects. It should not be used directly.


Methods

getBorderRadius

Communicator.Markup.Shape.RectangleBase.getBorderRadius()

Gets the border radius for this shape

Return type

number

Returns

the border radius

getFillColor

Communicator.Markup.Shape.RectangleBase.getFillColor()

Gets the fill color for this shape

Return type

Communicator.Color

Returns

the fill color

getFillOpacity

Communicator.Markup.Shape.RectangleBase.getFillOpacity()

Gets the fill opacity for this shape

Return type

number

Returns

the fill opacity

getStrokeColor

Communicator.Markup.Shape.RectangleBase.getStrokeColor()

Gets the stroke color for this shape

Return type

Communicator.Color

Returns

the stroke color

getStrokeWidth

Communicator.Markup.Shape.RectangleBase.getStrokeWidth()

Gets the stroke width for this shape in pixels

Return type

Communicator.Pixels

Returns

the stroke width in pixels

setBorderRadius

Communicator.Markup.Shape.RectangleBase.setBorderRadius(borderRadius)

Sets the border radius for this shape

Arguments
  • borderRadius (number()) – the border radius in pixels

Return type

void

setFillColor

Communicator.Markup.Shape.RectangleBase.setFillColor(color)

Sets the fill color for this shape

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

Return type

void

setFillOpacity

Communicator.Markup.Shape.RectangleBase.setFillOpacity(fillOpacity)

Sets the fill opacity for this shape

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

Return type

void

setStrokeColor

Communicator.Markup.Shape.RectangleBase.setStrokeColor(color)

Sets the stroke color for this shape

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

Return type

void

setStrokeWidth

Communicator.Markup.Shape.RectangleBase.setStrokeWidth(strokeWidth)

Sets the stroke width for this shape in pixels

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

Return type

void