RectangleBase

class Markup.Shapes.RectangleBase()

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

Constructors


Constructors

RectangleBase.constructor()
Return type:RectangleBase

Methods

getBorderRadius

RectangleBase.getBorderRadius()

Gets the border radius for this shape

Returns:the border radius
Return type:number

getFillColor

RectangleBase.getFillColor()

Gets the fill color for this shape

Returns:the fill color
Return type:Color

getFillOpacity

RectangleBase.getFillOpacity()

Gets the fill opacity for this shape

Returns:the fill opacity
Return type:number

getStrokeColor

RectangleBase.getStrokeColor()

Gets the stroke color for this shape

Returns:the stroke color
Return type:Color

getStrokeWidth

RectangleBase.getStrokeWidth()

Gets the stroke width for this shape in pixels

Returns:the stroke width in pixels
Return type:number

setBorderRadius

RectangleBase.setBorderRadius(borderRadius)
Arguments:
  • borderRadius (number()) – the border radius in pixels

Sets the border radius for this shape

Return type:void

setFillColor

RectangleBase.setFillColor(color)
Arguments:
  • color (Color()) – the fill color

Sets the fill color for this shape

Return type:void

setFillOpacity

RectangleBase.setFillOpacity(fillOpacity)
Arguments:
  • fillOpacity (number()) – the fill opacity

Sets the fill opacity for this shape

Return type:void

setStrokeColor

RectangleBase.setStrokeColor(color)
Arguments:
  • color (Color()) – the stroke color

Sets the stroke color for this shape

Return type:void

setStrokeWidth

RectangleBase.setStrokeWidth(strokeWidth)
Arguments:
  • strokeWidth (number()) – the stroke width in pixels

Sets the stroke width for this shape in pixels

Return type:void