Search
Factory.createContainerNode Method (Rectangle2D, boolean)
See Also
 

Creates a new ContainerNode instance with the specified dimensions, optionally foldable, and adds it to the Nodes collection of the underlying diagram.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public ContainerNode createContainerNode (
    Rectangle2D bounds,
    boolean foldable
)

 Parameters

bounds
The bounding rectangle of the new node.
foldable
true if the container can be folded; otherwise, false.

 Return Value

The newly created ContainerNode instance.

 Remarks

The method creates a container node with the position and size specified by bounds. The parameter foldable specifies whether the container node is initially foldable.

 See Also