| Package | com.yworks.yfiles.layout.multipage |
| Class | public class LayoutContext |
| Inheritance | LayoutContext YObject Object |
| Implements | ElementInfoManager |
| Property | Defined By | ||
|---|---|---|---|
| graph : LayoutGraph [read-only]
Returns the relevant graph. | LayoutContext | ||
| layouter : MultiPageLayouter [read-only]
Returns the layouter object that belongs to this layout context. | LayoutContext | ||
| Method | Defined By | ||
|---|---|---|---|
LayoutContext(init:Boolean = true) | LayoutContext | ||
Adds a label to an edge. | LayoutContext | ||
Adds a label to a node. | LayoutContext | ||
All methods of the com.yworks.yfiles.layout.multipage.ElementFactory have to use this method to create an edge. | LayoutContext | ||
createNode(sameDataElementId:Object):Node
All methods of the com.yworks.yfiles.layout.multipage.ElementFactory have to use this method to create a node. | LayoutContext | ||
![]() | equals(o:Object):Boolean | YObject | |
getClass():Class [override] | LayoutContext | ||
| LayoutContext | |||
| LayoutContext | |||
| LayoutContext | |||
| LayoutContext | |||
getOriginalEdge(id:Object):Edge
Returns the edge of the input graph with the given id or null if there is no such edge. | LayoutContext | ||
getOriginalNode(id:Object):Node
Returns the node of the input graph with the given id or null if there is no such node. | LayoutContext | ||
getPageEdge(id:Object):Edge
Returns the edge of a page graph (a graph that represents the result of the multi page layout) with the given id or null if there is no such edge. | LayoutContext | ||
getPageNode(id:Object):Node
Returns the node of a page graph (a graph that represents the result of the multi page layout) with the given id or null if there is no such node. | LayoutContext | ||
![]() | hashCode():int | YObject | |
Removes a label from an edge. | LayoutContext | ||
Removes a label from a node. | LayoutContext | ||
| graph | property |
graph:LayoutGraph [read-only] Returns the relevant graph.
public function get graph():LayoutGraph| layouter | property |
layouter:MultiPageLayouter [read-only] Returns the layouter object that belongs to this layout context.
public function get layouter():MultiPageLayouter| LayoutContext | () | Constructor |
public function LayoutContext(init:Boolean = true)init:Boolean (default = true) |
| addEdgeLabel | () | method |
public function addEdgeLabel(label:EdgeLabelLayout, labeledElement:Edge):voidAdds a label to an edge.
Parameters
label:EdgeLabelLayout — the label that should be added to the edge.
| |
labeledElement:Edge — the edge the label should be added to.
|
| addNodeLabel | () | method |
public function addNodeLabel(label:NodeLabelLayout, labeledElement:Node):voidAdds a label to a node.
Parameters
label:NodeLabelLayout — the label that should be added to the node.
| |
labeledElement:Node — the node the label should be added to.
|
| createEdge | () | method |
public function createEdge(source:Node, target:Node, sameDataElementId:Object):EdgeAll methods of the com.yworks.yfiles.layout.multipage.ElementFactory have to use this method to create an edge.
Parameters
source:Node — the source of the edge.
| |
target:Node — the target of the edge.
| |
sameDataElementId:Object — the id of the edge whose data should be copied to the created edge (or null if no data should be copied).
|
Edge — the created edge.
|
See also
| createNode | () | method |
public function createNode(sameDataElementId:Object):NodeAll methods of the com.yworks.yfiles.layout.multipage.ElementFactory have to use this method to create a node.
Parameters
sameDataElementId:Object — the id of the node whose data should be copied to the created node (or null if no data should be copied).
|
Node — the created node.
|
See also
| getClass | () | method |
override public function getClass():ClassReturnsClass |
| getEdgeInfo | () | method |
| getEdgeLabelInfo | () | method |
public function getEdgeLabelInfo(ell:EdgeLabelLayout):EdgeLabelInfoParameters
ell:EdgeLabelLayout |
EdgeLabelInfo |
| getNodeInfo | () | method |
| getNodeLabelInfo | () | method |
public function getNodeLabelInfo(nll:NodeLabelLayout):NodeLabelInfoParameters
nll:NodeLabelLayout |
NodeLabelInfo |
| getOriginalEdge | () | method |
public function getOriginalEdge(id:Object):EdgeReturns the edge of the input graph with the given id or null if there is no such edge.
Parameters
id:Object — the id of the edge that should be returned.
|
Edge — the edge of the input graph with the given id or null if there is no such edge.
|
| getOriginalNode | () | method |
public function getOriginalNode(id:Object):NodeReturns the node of the input graph with the given id or null if there is no such node.
Parameters
id:Object — the id of the node that should be returned.
|
Node — the node of the input graph with the given id or null if there is no such node.
|
| getPageEdge | () | method |
public function getPageEdge(id:Object):EdgeReturns the edge of a page graph (a graph that represents the result of the multi page layout) with the given id or null if there is no such edge.
Parameters
id:Object — the id of the edge that should be returned.
|
Edge — the edge of a page graph with the given id or null if there is no such edge.
|
| getPageNode | () | method |
public function getPageNode(id:Object):NodeReturns the node of a page graph (a graph that represents the result of the multi page layout) with the given id or null if there is no such node.
Parameters
id:Object — the id of the node that should be returned.
|
Node — the node of a page graph with the given id or null if there is no such node.
|
| removeEdgeLabel | () | method |
public function removeEdgeLabel(label:EdgeLabelLayout, labeledElement:Edge):BooleanRemoves a label from an edge.
Parameters
label:EdgeLabelLayout — the label that should be removed.
| |
labeledElement:Edge — the edge owning the label.
|
Boolean |
| removeNodeLabel | () | method |
public function removeNodeLabel(label:NodeLabelLayout, labeledElement:Node):BooleanRemoves a label from a node.
Parameters
label:NodeLabelLayout — the label that should be removed.
| |
labeledElement:Node — the node owning the label.
|
Boolean |