|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.multipage.MultiPageLayout
public class MultiPageLayout
This class represents the result of a layout run of MultiPageLayouter
.
A layout run subdivides the input graph into several LayoutGraph
s (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 MultiPageLayouter.calcLayout(y.layout.LayoutGraph)
or MultiPageLayouter.doLayout(y.layout.LayoutGraph)
.
In the latter case, a LayoutCallback
has to be set
before starting the layout run.
Method Summary | |
---|---|
EdgeInfo |
getEdgeInfo(Edge edge)
Returns the edge information object of the given edge. |
EdgeLabelInfo |
getEdgeLabelInfo(EdgeLabelLayout edgeLabelLayout)
Returns the edge label information object of the given edge label layout. |
NodeInfo |
getNodeInfo(Node node)
Returns the node information object of the given node. |
NodeLabelInfo |
getNodeLabelInfo(NodeLabelLayout 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 MultiPageLayout . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int pageCount()
MultiPageLayout
.
Each page contains a page graph
whose layout fits the
specified maximum page size
.
getPage(int)
public LayoutGraph getPage(int pageNo)
0
and the last page pageCount - 1
.
A page graph is a subgraph of the input graph whose layout fits the
specified maximum page size
.
pageNo
- the given page number (with 0
being the first page)
java.lang.IndexOutOfBoundsException
- if pageNo >= pageCount
or
pageNo < 0
pageCount()
public EdgeInfo getEdgeInfo(Edge edge)
ElementInfoManager
getEdgeInfo
in interface ElementInfoManager
edge
- the edge for which the information object should be returned
public NodeInfo getNodeInfo(Node node)
ElementInfoManager
getNodeInfo
in interface ElementInfoManager
node
- the node for which the information object should be returned
public NodeLabelInfo getNodeLabelInfo(NodeLabelLayout nodeLabelLayout)
ElementInfoManager
getNodeLabelInfo
in interface ElementInfoManager
nodeLabelLayout
- the node label layout for which the information object should be returned
public EdgeLabelInfo getEdgeLabelInfo(EdgeLabelLayout edgeLabelLayout)
ElementInfoManager
getEdgeLabelInfo
in interface ElementInfoManager
edgeLabelLayout
- the edge label layout for which the information object should be returned
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |