|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.DefaultGraphLayout
public class DefaultGraphLayout
DefaultGraphLayout
is a default implementation of the GraphLayout
interface.
It provides layout information for nodes, edges and their associated labels as well as the graph as a whole.
Constructor Summary | |
---|---|
DefaultGraphLayout()
Creates a new DefaultGraphLayout instance. |
Method Summary | |
---|---|
java.awt.Rectangle |
getBoundingBox()
Returns the bounding box of this GraphLayout . |
EdgeLabelLayout[] |
getEdgeLabelLayout(java.lang.Object edge)
Returns the layout information for all edge labels belonging to the given edge. |
EdgeLayout |
getEdgeLayout(java.lang.Object edge)
Returns the layout information associated with the given edge. |
NodeLabelLayout[] |
getNodeLabelLayout(java.lang.Object node)
Returns the layout information for all node labels belonging to the given node. |
NodeLayout |
getNodeLayout(java.lang.Object node)
Returns the layout information associated with the given node. |
void |
setEdgeLabelLayout(java.lang.Object edge,
EdgeLabelLayout[] layout)
Specifies the layout information for all edge labels belonging to the given edge. |
void |
setEdgeLayout(java.lang.Object edge,
EdgeLayout layout)
Specifies the layout information associated with the given edge. |
void |
setNodeLabelLayout(java.lang.Object node,
NodeLabelLayout[] layout)
Specifies the layout information for all node labels belonging to the given node. |
void |
setNodeLayout(java.lang.Object node,
NodeLayout layout)
Specifies the layout information associated with the given node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGraphLayout()
DefaultGraphLayout
instance.
Method Detail |
---|
public void setNodeLayout(java.lang.Object node, NodeLayout layout)
This information contains the location and size of the node.
node
- the nodelayout
- the layout information for the nodepublic void setEdgeLayout(java.lang.Object edge, EdgeLayout layout)
This information contains the coordinates of the source and target points as well as the coordinates of all control points.
edge
- the edgelayout
- the layout information for the edgepublic EdgeLayout getEdgeLayout(java.lang.Object edge)
GraphLayout
This information contains the coordinates of the source and target points as well as the coordinates of all control points.
getEdgeLayout
in interface GraphLayout
edge
- the edge
public NodeLayout getNodeLayout(java.lang.Object node)
GraphLayout
This information contains the location and size of the node.
getNodeLayout
in interface GraphLayout
node
- the node
public void setNodeLabelLayout(java.lang.Object node, NodeLabelLayout[] layout)
This information contains the location and size of the labels.
node
- the node that owns the labelslayout
- the array of all labels that belong to the nodepublic NodeLabelLayout[] getNodeLabelLayout(java.lang.Object node)
GraphLayout
This information contains the location and size of the labels.
getNodeLabelLayout
in interface GraphLayout
node
- the node that owns the labels
public void setEdgeLabelLayout(java.lang.Object edge, EdgeLabelLayout[] layout)
This information contains the location and size of the labels.
edge
- the edge that owns the labelslayout
- the array of all labels that belong to the edgepublic EdgeLabelLayout[] getEdgeLabelLayout(java.lang.Object edge)
GraphLayout
This information contains the location and size of the labels.
getEdgeLabelLayout
in interface GraphLayout
edge
- the edge that owns the labels
public java.awt.Rectangle getBoundingBox()
GraphLayout
GraphLayout
.
This box is the smallest rectangular area that contains all layout elements in this GraphLayout
.
getBoundingBox
in interface GraphLayout
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |