(private) new xrx.drawing.LayerShape(drawing)
A class representing a drawing layer where shapes can be rendered.
Parameters:
Name | Type | Description |
---|---|---|
drawing |
xrx.drawing.Drawing | The parent drawing canvas. |
Extends
Members
-
(private) xrx.drawing.LayerShape#drawing_
-
- Inherited From:
- Source:
-
(private) xrx.drawing.LayerShape#group_
-
- Inherited From:
- Source:
-
(private) xrx.drawing.LayerShape#locked_
-
- Inherited From:
- Source:
-
(private) xrx.drawing.LayerShape#shapes_
-
- Inherited From:
- Source:
Methods
-
xrx.drawing.LayerShape#addShapes(shapes)
-
Adds shapes to the layer.
Parameters:
Name Type Description shapes
xrx.shape.Shape The shapes. - Inherited From:
- Source:
-
(private) xrx.drawing.LayerShape#create_()
-
- Inherited From:
- Source:
-
xrx.drawing.LayerShape#disposeInternal()
-
Disposes this layer.
- Inherited From:
- Source:
-
xrx.drawing.LayerShape#draw()
-
Draws all shapes of the layer.
- Inherited From:
- Source:
-
xrx.drawing.LayerShape#getDrawing() → {xrx.drawing.Drawing}
-
Returns the drawing object.
- Inherited From:
- Source:
Returns:
- Type
- xrx.drawing.Drawing
-
xrx.drawing.LayerShape#getGroup() → {Object}
-
Returns the layers' group.
- Inherited From:
- Source:
Returns:
The group.- Type
- Object
-
xrx.drawing.LayerShape#getShapes() → {xrx.shape.Shape}
-
Returns the shapes of the layer.
- Inherited From:
- Source:
Returns:
The shapes.- Type
- xrx.shape.Shape
-
xrx.drawing.LayerShape#isLocked() → {boolean}
-
Returns whether the layer is locked currently.
- Inherited From:
- Source:
Returns:
Locked or not.- Type
- boolean
-
xrx.drawing.LayerShape#removeShape(shape)
-
Removes one shape from the layer.
Parameters:
Name Type Description shape
xrx.shape.Shape The shape to remove. - Inherited From:
- Source:
-
xrx.drawing.LayerShape#removeShapes()
-
Removes all shapes from the layer;
- Inherited From:
- Source:
-
xrx.drawing.LayerShape#setLocked(flag)
-
Locks or unlocks the layer so that the shapes are ignored by xrx.event.HandlerTarget.
Parameters:
Name Type Description flag
boolean Whether to lock or unlock the layer. - Inherited From:
- Source: