Search
DiagramNode Methods
 


 Public Methods

  Name Description

acceptLinks

Determines whether the node can be connected with links of the specified type.

addCanvasElements

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

addLabel

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

allowDrag

DiagramItem.allowDrag override.

animate

Animates the item. (Inherited from DiagramItem.)

attach

Attaches the specified subordinate node to this node, so that when this node is moved, the subordinate follows it.

attachTo

Attaches this node to the specified master node so that when the master is moved, the attached node follows it.

clone

DiagramItem.clone override.

containsPoint

DiagramItem.containsPoint override.

createConnectionPoint

Creates a connection point between this node and the specified link at the specified point.

detach

Detaches this node from its current master node.

endDrag

DiagramItem.endDrag override.

fromJson

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

fromJson

DiagramItem.fromJson override.

getAllLinks

Returns all links connected to this node.

getIntersection

Calculates the intersection point between the segment defined by the specified point pair and the node's outline.

getOutline

Gets the bounding rectangle of this node.

getRepaintBounds

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

getRotatedBounds

Gets the bounding rectangle of this item when it is rotated.

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

DiagramItem.loadFromXml override. Loads the node's content from an XML element.

onRemove

Called when an item is removed from a Diagram, either by the user, programmatically or via undo / redo. (Inherited from DiagramItem.)

raiseClicked

Raises an event which notifies that a node has been clicked.

raiseDoubleClicked

Raises an event which notifies that a node has been double-clicked.

removeCanvasElements

DiagramItem.removeCanvasElements override.

removeLabel

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

restoreLocationState

DiagramItem.restoreLocationState override.

restoreState

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

restoreState

DiagramItem.restoreState override.

saveLocationState

DiagramItem.saveLocationState override.

saveState

DiagramItem.saveState override.

saveToXml

Saves the item content into an XML element.

setBounds

Sets the rectangle that defines the position of the diagram node.

startDrag

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

toJson

DiagramItem.toJson override.

updateCanvasElements

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

updateDrag

DiagramItem.updateDrag override.

 See Also