RectangleCollection
- class Markup.Shapes.RectangleCollection()
This is useful for drawing a number of rectangles which share the same visual appearance.
Constructors
Methods
Constructors
- RectangleCollection.constructor()
- Return type
RectangleCollection
Methods
addRectangle
clear
- RectangleCollection.clear()
Removes all rectangles from this collection
- Return type
void
getBorderRadius
- RectangleCollection.getBorderRadius()
Gets the border radius for this shape
- Returns
the border radius
- Return type
number
getFillColor
- RectangleCollection.getFillColor()
Gets the fill color for this shape
- Returns
the fill color
- Return type
Color
getFillOpacity
- RectangleCollection.getFillOpacity()
Gets the fill opacity for this shape
- Returns
the fill opacity
- Return type
number
getRectangles
- RectangleCollection.getRectangles()
Gets the rectangles in the collection
- Return type
[_MarkupRectangleData]
getStrokeColor
- RectangleCollection.getStrokeColor()
Gets the stroke color for this shape
- Returns
the stroke color
- Return type
Color
getStrokeWidth
- RectangleCollection.getStrokeWidth()
Gets the stroke width for this shape in pixels
- Returns
the stroke width in pixels
- Return type
number
setBorderRadius
- RectangleCollection.setBorderRadius(borderRadius)
- Arguments
borderRadius (
number()) – the border radius in pixels
Sets the border radius for this shape
- Return type
void
setFillColor
setFillOpacity
- RectangleCollection.setFillOpacity(fillOpacity)
- Arguments
fillOpacity (
number()) – the fill opacity
Sets the fill opacity for this shape
- Return type
void
setStrokeColor
setStrokeWidth
- RectangleCollection.setStrokeWidth(strokeWidth)
- Arguments
strokeWidth (
number()) – the stroke width in pixels
Sets the stroke width for this shape in pixels
- Return type
void