public class MultiPageLayoutResult extends Object implements IElementInfoManager
MultiPageLayout.
A layout run subdivides the input graph into several LayoutGraphs (called page graphs) such that the layout of
each graph fits the
specified maximum page size.
This class provides access to the different page graphs (see method getPage(int)).
An instance of this class can be either obtained by calling MultiPageLayout.calculateLayout(LayoutGraph) or
MultiPageLayout.applyLayout(LayoutGraph). In the latter case, a ILayoutCallback has to be set
before starting the layout run.
| Modifier and Type | Method and Description |
|---|---|
IEdgeInfo |
getEdgeInfo(Edge edge)
Returns the edge information object of the given edge.
|
IEdgeLabelInfo |
getEdgeLabelInfo(IEdgeLabelLayout edgeLabelLayout)
Returns the edge label information object of the given edge label layout.
|
INodeInfo |
getNodeInfo(Node node)
Returns the node information object of the given node.
|
INodeLabelInfo |
getNodeLabelInfo(INodeLabelLayout nodeLabelLayout)
Returns the node label layout information object of the given node label layout.
|
LayoutGraph |
getPage(int pageNo)
Returns the page graph associated with the given page number.
|
int |
pageCount()
Returns the number of pages available in this
MultiPageLayoutResult. |
public IEdgeInfo getEdgeInfo(Edge edge)
IElementInfoManagergetEdgeInfo in interface IElementInfoManageredge - the edge for which the information object should be returnedpublic IEdgeLabelInfo getEdgeLabelInfo(IEdgeLabelLayout edgeLabelLayout)
IElementInfoManagergetEdgeLabelInfo in interface IElementInfoManageredgeLabelLayout - the edge label layout for which the information object should be returnedpublic INodeInfo getNodeInfo(Node node)
IElementInfoManagergetNodeInfo in interface IElementInfoManagernode - the node for which the information object should be returnedpublic INodeLabelInfo getNodeLabelInfo(INodeLabelLayout nodeLabelLayout)
IElementInfoManagergetNodeLabelInfo in interface IElementInfoManagernodeLabelLayout - the node label layout for which the information object should be returnedpublic LayoutGraph getPage(int pageNo)
A page graph is a subgraph of the input graph whose layout fits the
specified maximum page size.
IndexOutOfBoundsException - if pageNo >= pageCount or pageNo < 0pageNo - the given page numberpageCount()public int pageCount()
MultiPageLayoutResult.
Each page contains a page graph whose layout fits the
specified maximum page size.
getPage(int)