MindFusion.Diagramming for JavaScript Programmer's Guide
ShapeNode Members
Constructors Methods
 


ShapeNode instances are diagram nodes that represent geometric shapes.

The following tables list the members exposed by the ShapeNode type.

 Public Constructors

  Name Description

ShapeNode

Initializes a new instance of the ShapeNode class with default values supplied form the specified Diagram.

 Public Methods

  Name Description

containsPoint

Checks if the ShapeNode contains the specified point.

getEnableStyledText

Gets a value indicating whether styled text rendering is enabled.

getImage

Gets the image of the node.

getImageAlign

Gets the alignment for the image of this node.

getImageContent

Gets the Base64-encoded data of the image displayed in this ShapeNode.

getImageLocation

Gets the URL of the image displayed in this ShapeNode.

getLineAlignment

Gets how the text should be vertically aligned in the ShapeNode's text box.

getOutline

Gets an array of points that define the outline of this node shape.

getRotateImage

Gets a value indicating whether the image is rotated when the node is rotated.

getRotateText

Gets a value indicating whether text is rotated when the node is rotated.

getShape

Gets a reference to the node's geometric shape definition.

getTextAlignment

Gets how the text should be aligned in the ShapeNode's text box.

getTextColor

Gets a string specifying the color of the text of this node.

getTransparent

Gets or sets a value indicating whether this ShapeNode is transparent.

resizeToFitText

Makes the shape node big enough to display its text without clipping.

setEnableStyledText

Sets a value indicating whether styled text rendering is enabled.

setImage

Sets the image of the node.

setImageAlign

Sets the alignment for the image of this node.

setImageContent

Sets the Base64-encoded data of the image displayed in this ShapeNode.

setImageLocation

Sets the URL of the image displayed in this ShapeNode.

setLineAlignment

Sets how the text should be vertically aligned in the ShapeNode's text box.

setRotateImage

Sets a value indicating whether the image is rotated when the node is rotated.

setRotateText

Sets a value indicating whether text is rotated when the node is rotated.

setShape

Sets a reference to the node's geometric shape definition.

setTextAlignment

Sets how the text should be aligned in the ShapeNode's text box.

setTextColor

Sets a string specifying the color of the text of this node.

setTransparent

Sets or sets a value indicating whether this ShapeNode is transparent.

 See Also

ShapeNode Class
MindFusion.Diagramming Namespace