Class: xrx.drawing.LayerShapeCreate

xrx.drawing. LayerShapeCreate

(private) new xrx.drawing.LayerShapeCreate(drawing)

A class representing a drawing layer where new shapes can be created.
Parameters:
Name Type Description
drawing xrx.drawing.Drawing The parent drawing canvas.
Source:

Extends

Members

(private) xrx.drawing.LayerShapeCreate#drawing_

Inherited From:
Source:

(private) xrx.drawing.LayerShapeCreate#group_

Inherited From:
Source:

(private) xrx.drawing.LayerShapeCreate#locked_

Inherited From:
Source:

(private) xrx.drawing.LayerShapeCreate#shapes_

Inherited From:
Source:

Methods

xrx.drawing.LayerShapeCreate#addShapes(shapes)

Adds shapes to the layer.
Parameters:
Name Type Description
shapes xrx.shape.Shape The shapes.
Inherited From:
Source:

(private) xrx.drawing.LayerShapeCreate#create_()

Inherited From:
Source:

xrx.drawing.LayerShapeCreate#disposeInternal()

Disposes this layer.
Inherited From:
Source:

xrx.drawing.LayerShapeCreate#draw()

Draws all shapes of the layer.
Inherited From:
Source:

xrx.drawing.LayerShapeCreate#getDrawing() → {xrx.drawing.Drawing}

Returns the drawing object.
Inherited From:
Source:
Returns:
Type
xrx.drawing.Drawing

xrx.drawing.LayerShapeCreate#getGroup() → {Object}

Returns the layers' group.
Inherited From:
Source:
Returns:
The group.
Type
Object

xrx.drawing.LayerShapeCreate#getShapes() → {xrx.shape.Shape}

Returns the shapes of the layer.
Inherited From:
Source:
Returns:
The shapes.
Type
xrx.shape.Shape

xrx.drawing.LayerShapeCreate#isLocked() → {boolean}

Returns whether the layer is locked currently.
Inherited From:
Source:
Returns:
Locked or not.
Type
boolean

xrx.drawing.LayerShapeCreate#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.LayerShapeCreate#removeShapes()

Removes all shapes from the layer;
Inherited From:
Source:

xrx.drawing.LayerShapeCreate#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: