|
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.LayoutContext
public class LayoutContext
Class that represents the layout context.
Method Summary | |
---|---|
void |
addEdgeLabel(EdgeLabelLayout label,
Edge labeledElement)
Adds a label to an edge. |
void |
addNodeLabel(NodeLabelLayout label,
Node labeledElement)
Adds a label to a node. |
Edge |
createEdge(Node source,
Node target,
Object sameDataElementId)
All methods of the ElementFactory have to use this method to create an edge. |
Node |
createNode(Object sameDataElementId)
All methods of the ElementFactory have to use this method to create a node. |
EdgeInfo |
getEdgeInfo(Edge e)
Returns the edge information object of the given edge. |
EdgeLabelInfo |
getEdgeLabelInfo(EdgeLabelLayout ell)
Returns the edge label information object of the given edge label layout. |
LayoutGraph |
getGraph()
Returns the relevant graph. |
MultiPageLayouter |
getLayouter()
Returns the layouter object that belongs to this layout context. |
NodeInfo |
getNodeInfo(Node n)
Returns the node information object of the given node. |
NodeLabelInfo |
getNodeLabelInfo(NodeLabelLayout nll)
Returns the node label layout information object of the given node label layout. |
Edge |
getOriginalEdge(Object id)
Returns the edge of the input graph with the given id or null if there is no such edge. |
Node |
getOriginalNode(Object id)
Returns the node of the input graph with the given id or null if there is no such node. |
Edge |
getPageEdge(Object id)
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. |
Node |
getPageNode(Object id)
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. |
boolean |
removeEdgeLabel(EdgeLabelLayout label,
Edge labeledElement)
Removes a label from an edge. |
boolean |
removeNodeLabel(NodeLabelLayout label,
Node labeledElement)
Removes a label from a node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Edge createEdge(Node source, Node target, Object sameDataElementId)
ElementFactory
have to use this method to create an edge.
source
- the source of the edge.target
- the target of the edge.sameDataElementId
- the id of the edge whose data should be copied to the created edge
(or null if no data should be copied).
ElementFactory
public Node createNode(Object sameDataElementId)
ElementFactory
have to use this method to create a node.
sameDataElementId
- the id of the node whose data should be copied to the created node
(or null if no data should be copied).
ElementFactory
public void addNodeLabel(NodeLabelLayout label, Node labeledElement)
label
- the label that should be added to the node.labeledElement
- the node the label should be added to.public void addEdgeLabel(EdgeLabelLayout label, Edge labeledElement)
label
- the label that should be added to the edge.labeledElement
- the edge the label should be added to.public boolean removeNodeLabel(NodeLabelLayout label, Node labeledElement)
label
- the label that should be removed.labeledElement
- the node owning the label.public boolean removeEdgeLabel(EdgeLabelLayout label, Edge labeledElement)
label
- the label that should be removed.labeledElement
- the edge owning the label.public LayoutGraph getGraph()
public MultiPageLayouter getLayouter()
public Node getPageNode(Object id)
id
- the id of the node that should be returned.
public Edge getPageEdge(Object id)
id
- the id of the edge that should be returned.
public Node getOriginalNode(Object id)
id
- the id of the node that should be returned.
public Edge getOriginalEdge(Object id)
id
- the id of the edge that should be returned.
public EdgeLabelInfo getEdgeLabelInfo(EdgeLabelLayout ell)
ElementInfoManager
getEdgeLabelInfo
in interface ElementInfoManager
ell
- the edge label layout for which the information object should be returned.
public NodeLabelInfo getNodeLabelInfo(NodeLabelLayout nll)
ElementInfoManager
getNodeLabelInfo
in interface ElementInfoManager
nll
- the node label layout for which the information object should be returned.
public NodeInfo getNodeInfo(Node n)
ElementInfoManager
getNodeInfo
in interface ElementInfoManager
n
- the node for which the information object should be returned.
public EdgeInfo getEdgeInfo(Edge e)
ElementInfoManager
getEdgeInfo
in interface ElementInfoManager
e
- the edge for which the information object should be returned.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |