public interface IGraphMLNode extends IDElement, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
GraphMLEdge |
addEdgeFrom(IGraphMLNode source)
Add an edge from another node to this one.
|
GraphMLEdge |
addEdgeTo(IGraphMLNode target)
Add an edge from this node to another one.
|
boolean |
addFromEdge(GraphMLEdge edge)
Add an edge originating from another node.
|
boolean |
addToEdge(GraphMLEdge edge)
Add an edge originating from this node.
|
IGraphMLNode |
clone()
Clone the node.
|
void |
computeSize(boolean recurse)
Compute the size of the node.
|
void |
computeSize(float groupNodePadding,
boolean recurse)
Compute the size of the node.
|
void |
computeSize(float groupNodePadding,
boolean realizedState,
boolean recurse)
Compute the size of the node.
|
AbstractGraphMLDiagram |
getDiagram()
Return the node diagram.
|
java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> |
getFromEdges()
Return the Map of edges originating from other nodes.
|
ShapeNode |
getOpenedShapeNode()
Return the opened shape node.
|
NodeParent |
getParent()
Return the node parent.
|
ShapeNode |
getRealizedShapeNode()
Return the current realized shape node.
|
java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> |
getToEdges()
Return the Map of edges originating from this node.
|
void |
repatriate(AbstractGraphMLDiagram diagram)
Repatriate the node to another diagram.
|
void |
repatriate(AbstractGraphMLDiagram diagram,
boolean detach)
Repatriate the node to another diagram.
|
void |
setDefaultGeometry()
Set the default geometry.
|
void |
setId(java.lang.String id)
Set a new id for the node.
|
NodeLabel |
setLabel(java.lang.String text)
Set the node label.
|
void |
setParent(NodeParent parent)
Set the node parent.
|
void |
updateLabel()
Called when the label is updated.
|
getDescription, getID, getURL, getURLAsString, hasDescription, hasURL, isTemplate, setDescription, setURL, setURL
IGraphMLNode clone()
void setId(java.lang.String id)
id
- the nodeNodeLabel setLabel(java.lang.String text)
text
- the label textAbstractGraphMLDiagram getDiagram()
void setParent(NodeParent parent)
parent
- the parentNodeParent getParent()
void repatriate(AbstractGraphMLDiagram diagram, boolean detach)
diagram
- the new diagramdetach
- detach the node from its current diagramvoid repatriate(AbstractGraphMLDiagram diagram)
diagram
- the new diagramvoid computeSize(boolean recurse)
recurse
- recurse on children nodesvoid computeSize(float groupNodePadding, boolean realizedState, boolean recurse)
groupNodePadding
- the padding between nodes used for computing group node sizesrealizedState
- true for the state for which to compute the sizerecurse
- recurse on children nodesvoid computeSize(float groupNodePadding, boolean recurse)
groupNodePadding
- the padding between nodes used for computing group node sizesrecurse
- recurse on children nodesShapeNode getOpenedShapeNode()
ShapeNode getRealizedShapeNode()
void updateLabel()
void setDefaultGeometry()
java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> getFromEdges()
java.util.Map<java.lang.String,java.util.List<GraphMLEdge>> getToEdges()
boolean addFromEdge(GraphMLEdge edge)
edge
- the edgeGraphMLEdge addEdgeTo(IGraphMLNode target)
target
- the target nodeGraphMLEdge addEdgeFrom(IGraphMLNode source)
source
- the source nodeboolean addToEdge(GraphMLEdge edge)
edge
- the edgeCopyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence