public interface NodeParent
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addChild(IGraphMLNode node)Adds a child node to the parent. | 
| GraphMLGroupNode | addGroupNode()Adds a child group node to the parent. | 
| GraphMLGroupNode | addGroupNode(java.lang.String id)Add a group node with a specified id. | 
| GraphMLGroupNode | addGroupNodeFromTemplate(java.lang.String id)Adds a child group node to the parent. | 
| GraphMLGroupNode | addGroupNodeFromTemplateWithLabel(java.lang.String id,
                                 java.lang.String text)Adds a child group node to the parent, using a template, and with a specified label. | 
| GraphMLGroupNode | addGroupNodeWithLabel(java.lang.String text)Adds a group node to the parent, and with a specified label. | 
| GraphMLNode | addNode()Adds a child node to the parent. | 
| GraphMLNode | addNode(java.lang.String id)Add a node with a specified id. | 
| GraphMLNode | addNodeFromTemplate(java.lang.String id)Adds a child node to the parent, using a template. | 
| GraphMLNode | addNodeFromTemplateWithLabel(java.lang.String id,
                            java.lang.String text)Adds a child node to the parent, using a template, and with a specified label. | 
| GraphMLNode | addNodeWithLabel(java.lang.String text)Adds a child node to the parent, and with a specified label. | 
| int | countGroupNodes()Return the number of group nodes. | 
| int | countNodes()Return the number of children nodes. | 
| java.util.SortedMap<java.lang.String,IGraphMLNode> | getChildren()Return the children nodes. | 
| AbstractGraphMLDiagram | getDiagram()Return the diagram. | 
| java.util.SortedMap<java.lang.String,GraphMLGroupNode> | getGroupNodes()Return the children group nodes. | 
| boolean | hasGroupNodes()Return true if there are group nodes. | 
GraphMLNode addNode()
GraphMLNode addNodeFromTemplate(java.lang.String id)
id - the template idGraphMLNode addNodeFromTemplateWithLabel(java.lang.String id, java.lang.String text)
id - the template idtext - the node labelGraphMLNode addNodeWithLabel(java.lang.String text)
text - the node labelGraphMLNode addNode(java.lang.String id)
id - the node idGraphMLGroupNode addGroupNode()
GraphMLGroupNode addGroupNodeWithLabel(java.lang.String text)
text - the group node labelGraphMLGroupNode addGroupNodeFromTemplate(java.lang.String id)
id - thr template idGraphMLGroupNode addGroupNodeFromTemplateWithLabel(java.lang.String id, java.lang.String text)
id - the template idtext - the node labelGraphMLGroupNode addGroupNode(java.lang.String id)
id - the group node idboolean addChild(IGraphMLNode node)
node - the node to addtrue if the add is successful, and false otherwisejava.util.SortedMap<java.lang.String,IGraphMLNode> getChildren()
java.util.SortedMap<java.lang.String,GraphMLGroupNode> getGroupNodes()
int countNodes()
int countGroupNodes()
boolean hasGroupNodes()
AbstractGraphMLDiagram getDiagram()
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence