RectangleCollection
-
class
Markup.Shapes.RectangleCollection() This is useful for drawing a number of rectangles which share the same visual appearance.
Constructors
-
Markup.Shapes.RectangleCollection.constructor() - RectangleCollection():
RectangleCollectionReturns:
RectangleCollection
Methods
-
Markup.Shapes.RectangleCollection.addRectangle() -
Adds a rectangle to the collection
Parameters
Returns: void
-
Markup.Shapes.RectangleCollection.clear() - clear(): void
Removes all rectangles from this collection
Returns: void
-
Markup.Shapes.RectangleCollection.getBorderRadius() inherited
getBorderRadius(): numberGets the border radius for this shape
Returns: number
the border radius
-
Markup.Shapes.RectangleCollection.getFillColor() inherited
getFillColor():ColorGets the fill color for this shape
Returns:
Colorthe fill color
-
Markup.Shapes.RectangleCollection.getFillOpacity() inherited
getFillOpacity(): numberGets the fill opacity for this shape
Returns: number
the fill opacity
-
Markup.Shapes.RectangleCollection.getRectangles() - getRectangles(): _MarkupRectangleData[]
Gets the rectangles in the collection
Returns: _MarkupRectangleData[]
-
Markup.Shapes.RectangleCollection.getStrokeColor() inherited
getStrokeColor():ColorGets the stroke color for this shape
Returns:
Colorthe stroke color
-
Markup.Shapes.RectangleCollection.getStrokeWidth() inherited
getStrokeWidth(): numberGets the stroke width for this shape in pixels
Returns: number
the stroke width in pixels
-
Markup.Shapes.RectangleCollection.setBorderRadius() inherited
setBorderRadius(borderRadius: number): voidSets the border radius for this shape
Parameters
borderRadius: number
the border radius in pixelsReturns: void
-
Markup.Shapes.RectangleCollection.setFillColor() inherited
setFillColor(color:Color): voidSets the fill color for this shape
Parameters
color:
Colorthe fill colorReturns: void
-
Markup.Shapes.RectangleCollection.setFillOpacity() inherited
setFillOpacity(fillOpacity: number): voidSets the fill opacity for this shape
Parameters
fillOpacity: number
the fill opacityReturns: void
-
Markup.Shapes.RectangleCollection.setStrokeColor() inherited
setStrokeColor(color:Color): voidSets the stroke color for this shape
Parameters
color:
Colorthe stroke colorReturns: void
-
Markup.Shapes.RectangleCollection.setStrokeWidth() inherited
setStrokeWidth(strokeWidth: number): voidSets the stroke width for this shape in pixels
Parameters
strokeWidth: number
the stroke width in pixelsReturns: void