RectangleBase

class Communicator.Markup.Shape.RectangleBase()

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


Methods

getBorderRadius

RectangleBase.getBorderRadius()

Gets the border radius for this shape

Return type

number

Returns

the border radius

getFillColor

RectangleBase.getFillColor()

Gets the fill color for this shape

Return type

Color()

Returns

the fill color

getFillOpacity

RectangleBase.getFillOpacity()

Gets the fill opacity for this shape

Return type

number

Returns

the fill opacity

getStrokeColor

RectangleBase.getStrokeColor()

Gets the stroke color for this shape

Return type

Color()

Returns

the stroke color

getStrokeWidth

RectangleBase.getStrokeWidth()

Gets the stroke width for this shape in pixels

Return type

Pixels

Returns

the stroke width in pixels

setBorderRadius

RectangleBase.setBorderRadius(borderRadius)

Sets the border radius for this shape

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

Return type

void

setFillColor

RectangleBase.setFillColor(color)

Sets the fill color for this shape

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

Return type

void

setFillOpacity

RectangleBase.setFillOpacity(fillOpacity)

Sets the fill opacity for this shape

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

Return type

void

setStrokeColor

RectangleBase.setStrokeColor(color)

Sets the stroke color for this shape

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

Return type

void

setStrokeWidth

RectangleBase.setStrokeWidth(strokeWidth)

Sets the stroke width for this shape in pixels

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

Return type

void