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):void
Adds 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):void
Adds 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):Edge
All 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):Node
All 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():Class
ReturnsClass |
getEdgeInfo | () | method |
getEdgeLabelInfo | () | method |
public function getEdgeLabelInfo(ell:EdgeLabelLayout):EdgeLabelInfo
Parameters
ell:EdgeLabelLayout |
EdgeLabelInfo |
getNodeInfo | () | method |
getNodeLabelInfo | () | method |
public function getNodeLabelInfo(nll:NodeLabelLayout):NodeLabelInfo
Parameters
nll:NodeLabelLayout |
NodeLabelInfo |
getOriginalEdge | () | method |
public function getOriginalEdge(id:Object):Edge
Returns 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):Node
Returns 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):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.
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):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.
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):Boolean
Removes 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):Boolean
Removes a label from a node.
Parameters
label:NodeLabelLayout — the label that should be removed.
| |
labeledElement:Node — the node owning the label.
|
Boolean |