Search
Selection Methods
 


 Public Methods

  Name Description

addCanvasElements

Derived classes must implement this method by adding their graphics primitives to the canvas.elements collection. (Inherited from DiagramItem.)

addItem

Adds an item to the Selection.

addLabel

Adds a new label to this item. (Inherited from DiagramItem.)

allowDrag

DiagramItem.allowDrag override.

animate

Animates the item. (Inherited from DiagramItem.)

clear

Removes all items from the selection.

clone

Creates a copy of this item. (Inherited from DiagramItem.)

containsPoint

Determines whether this item contains the specified point. (Inherited from DiagramItem.)

endDrag

DiagramItem.endDrag override.

fromJson

Deserializes this item from a JSON object. (Inherited from DiagramItem.)

getBounds

Gets a rectangle that defines the position of the selection frame.

getRepaintBounds

Gets the repaint region for this item, taking into account factors such as pen width, selection handles and shadow. (Inherited from DiagramItem.)

hitTest

Returns the diagram item that contains the specified point. (Inherited from DiagramItem.)

invalidate

Invalidates the region of the canvas, that matches the item's repaint bounds. (Inherited from DiagramItem.)

loadFromXml

Loads the item content from an XML element. (Inherited from DiagramItem.)

onRemove

DiagramItem.onRemove override.

removeCanvasElements

Derived classes must implement this method by removing their graphics primitives from the canvas.elements collection. (Inherited from DiagramItem.)

removeItem

Removes an item from the Diagram.

removeLabel

Removes the specified label from this item. (Inherited from DiagramItem.)

restoreState

Loads the properties of this diagram item. (Inherited from DiagramItem.)

saveLocationState

DiagramItem.saveLocationState override.

saveState

Saves the properties of this diagram item. (Inherited from DiagramItem.)

saveToXml

Saves the item content into an XML element. (Inherited from DiagramItem.)

startDrag

DiagramItem.startDrag override.

startDrag

Invoked when the user starts dragging this item. (Inherited from DiagramItem.)

toJson

Serializes this item into a JSON object. (Inherited from DiagramItem.)

updateCanvasElements

Derived classes must implement this method to update the item's visual elements. (Inherited from DiagramItem.)

updateDrag

DiagramItem.updateDrag override.

 See Also