public interface INodeInfo
The information can be either obtained from MultiPageLayoutResult.getNodeInfo(Node)
or
LayoutContext.getNodeInfo(Node)
.
Modifier and Type | Method and Description |
---|---|
Object |
getId()
Gets the unique ID of the node associated with this
info object . |
int |
getPageNo()
Gets the page number of the
page graph
that contains the node associated with this info object . |
Node |
getReferencingNode()
Gets the node that refers to the one associated with this
info object . |
Node |
getRepresentedNode()
Gets the node of the input graph that is represented by the node associated with this
info object . |
NodeType |
getType()
Gets the type of the node associated with this
info object . |
Object getId()
info object
.MultiPageLayout.NODE_ID_DPKEY
int getPageNo()
page graph
that contains the node associated with this info object
.Node getReferencingNode()
info object
.
More precisely, if the node associated with this info object
connector node
, this method returns the matching connector node,proxy node
, it returns the corresponding
proxy reference node
,
proxy reference node
, it returns the corresponding
proxy node
,
null
.NodeType.CONNECTOR
,
NodeType.PROXY
,
NodeType.PROXY_REFERENCE
Node getRepresentedNode()
info object
.
Note that, for the special nodes inserted to guarantee that no information is lost, there are no corresponding nodes in the input graph. Hence, special nodes are mapped to common nodes in the following way:
connector node
is mapped to the common node connected to the matching connector.proxy node
is mapped to the associated common node (i.e., the proxy is a copy of that node).proxy reference node
is not mapped to any node, and, thus this method returns null
for such nodes.
page graphs
are created
by the layout algorithm, the input graph remains unchanged. Matching elements are mapped to the same element ID, see
MultiPageLayout.NODE_ID_DPKEY
,
MultiPageLayout.EDGE_ID_DPKEY
, MultiPageLayout.NODE_LABEL_ID_DPKEY
and
MultiPageLayout.EDGE_LABEL_ID_DPKEY
. This method always returns a node of
the input graph!NodeType getType()
info object
.