DroidDiagram Programmer's Guide
ShapeNodeBuilder Members
Constructors Methods
 


A class used to initialize ShapeNode objects.

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

 Public Constructors

  Name Description

ShapeNodeBuilder

Overloaded.  

 Public Methods

  Name Description

allowFlip

Sets a value indicating whether the node's shape flips when an edge is dragged over its opposite edge.

allowIncomingLinks

Sets a value indicating whether users are allowed to draw links to this node.

allowOutgoingLinks

Sets a value indicating whether users are allowed to draw links from this node.

anchorPattern

Sets the anchor points to which link end points are aligned when links connect to this node.

brush

Overloaded.  

constraints

Sets constraints to the node size and movement direction. The constraints are applied when a user modifies the node interactively. They are not checked when the position of a node is set programmatically.

create

Creates a new object with the attributes accumulated by this builder.

customDraw

Sets a value indicating what type of custom drawing to perform on a node.

enabledHandles

Sets a combination of NodeHandleType members identifying which manipulation handles are enabled for a node. This effectively controls what kind of modifications users are allowed to perform on this node.

enableStyledText

Sets a value indicating whether the text of a node contains formatting tags which should be processed by JDiagram.

expandable

Sets a value indicating whether users are allowed to expand or collapse the tree branch that starts from this node.

expanded

Expands or collapses the tree branch that starts from a node.

flipX

Sets a value indicating whether the node's shape is flipped horizontally.

flipY

Sets a value indicating whether the node's shape is flipped vertically.

font

Overloaded.  

get

Returns an existing object passed for initialization to this builder.

handlesStyle

Sets the style of the box selection handles.

hyperLink

Sets the hyperlink associated with an item.

id

Assigns user-defined identifier to this item. If the id object is serializable, it will be automatically saved when serializing the diagram into binary format. When serializing to XML, you can save the tag by handling the DiagramListener.serializeTag event.

ignoreLayout

Sets a value indicating whether an item should be ignored by the automatic layout algorithms.

image

Sets the image that should be displayed inside the node.

imageAlign

Sets the alignment of the node's image.

layerIndex

Sets the zero-based index of the layer this item is associated with, or -1, if the item is not associated with any layer.

locked

Sets a value indicating whether users are allowed to modify an item.

obstacle

Sets a value indicating whether the link routing algorithm should consider this node an obstacle.

pen

Sets the pen used to draw the item frame lines.

printable

Sets a value indicating whether an item will be printed.

rotateImage

Sets a value indicating whether the image displayed inside a node should rotate together with the node.

rotateText

Sets a value indicating whether the text displayed inside a node should rotate together with the node.

rotationAngle

Sets the rotation angle of a node.

selected

Selects or deselects an item.

shadowBrush

Overloaded.  

shadowOffsetX

Sets the horizontal distance between a shadow and the item that casts it.

shadowOffsetY

Sets the vertical distance between a shadow and the item that casts it.

shape

Sets the shape of a node to the specified Shape instance. The initial shape of a node is the one set via the Diagram.setDefaultShape method.

shapeOrientation

Sets an orientation angle applied to the shape definition before the shape points are mapped to the node's bounding rectangle.

style

Sets the style associated with the item.

tag

Assigns user-defined data to an item. If the tag object is serializable, it will be automatically saved when serializing the diagram into binary format. When serializing to XML, you can save the tag by handling the DiagramListener.serializeTag event.

text

Sets the text label displayed inside this node.

textBrush

Overloaded.  

textFormat

Sets a TextFormat object specifying how to format and align the text of this node.

textPadding

Sets the spacing between the item boundaries and its text.

toolTip

Sets the tooltip text that should be displayed when the mouse pointer rests over an item.

transparent

Sets a value indicating whether only the text and image of a node should be drawn on the screen.

visible

Sets a value indicating whether an item is visible.

weight

Sets a weight value used in layout and path-finding algorithms.

zIndex

Sets the position of an item within the diagram's Z order.

 See Also

ShapeNodeBuilder Class
com.mindfusion.diagramming.builders Namespace