Class: xrx.drawing.LayerTool

xrx.drawing. LayerTool

(private) new xrx.drawing.LayerTool(drawing)

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

Extends

Members

(private) xrx.drawing.LayerTool#drawing_

Inherited From:
Source:

(private) xrx.drawing.LayerTool#group_

Inherited From:
Source:

(private) xrx.drawing.LayerTool#locked_

Inherited From:
Source:

(private) xrx.drawing.LayerTool#shapes_

Inherited From:
Source:

Methods

xrx.drawing.LayerTool#addShapes(shapes)

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

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

Inherited From:
Source:

xrx.drawing.LayerTool#disposeInternal()

Disposes this layer.
Inherited From:
Source:

xrx.drawing.LayerTool#draw()

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

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

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

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

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

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

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

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

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

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

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

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

xrx.drawing.LayerTool#toggleMagnifier()

Activates or deactivates the magnifier tool.
Source: