Class: xrx.drawing.LayerShapeModify

xrx.drawing. LayerShapeModify

(private) new xrx.drawing.LayerShapeModify(drawing)

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

Extends

Members

(private) xrx.drawing.LayerShapeModify#drawing_

Inherited From:
Source:

(private) xrx.drawing.LayerShapeModify#group_

Inherited From:
Source:

(private) xrx.drawing.LayerShapeModify#locked_

Inherited From:
Source:

(private) xrx.drawing.LayerShapeModify#shapes_

Inherited From:
Source:

Methods

xrx.drawing.LayerShapeModify#activate(modifiable)

Add modifiers such as vertex dragging elements to this layer.
Parameters:
Name Type Description
modifiable Array.<xrx.shape.Modifiable> The modifiable shape.
Source:

xrx.drawing.LayerShapeModify#addShapes(shapes)

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

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

Inherited From:
Source:

xrx.drawing.LayerShapeModify#disposeInternal()

Disposes this layer.
Source:

xrx.drawing.LayerShapeModify#draw()

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

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

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

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

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

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

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

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

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

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

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

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