public class DefaultLayoutGraph extends LayoutGraph
DefaultLayoutGraph is a default implementation of LayoutGraph which holds the complete layout
information about the graph and its elements.| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,Object> |
edgeLabelFeatureMap
A
Map associating the owner of an edge label with the edge label itself. |
protected IEdgeMap |
edgeLabelMap
An
IEdgeMap associating IEdgeLabelLayouts with the edges of this graph. |
protected Map<Object,Object> |
nodeLabelFeatureMap
A
Map associating the owner of a node label with the node label itself. |
protected INodeMap |
nodeLabelMap
A
INodeMap associating INodeLabelLayouts with the nodes of this graph. |
| Constructor and Description |
|---|
DefaultLayoutGraph()
Creates a new
DefaultLayoutGraph instance with default settings. |
DefaultLayoutGraph(LayoutGraph argGraph)
Creates a new
DefaultLayoutGraph instance which is a copy of the given graph. |
DefaultLayoutGraph(LayoutGraph graph,
ICursor nodeSubset)
Creates a new
DefaultLayoutGraph instance which is a copy of the given subgraph. |
| Modifier and Type | Method and Description |
|---|---|
protected IEdgeLayout |
createEdgeLayout()
Creates a new implementation of
IEdgeLayout. |
protected ILabelLayoutFactory |
createLabelFactory()
Creates a new
ILabelLayoutFactory for this LayoutGraph that can be used for copying layout information
of labels. |
protected INodeLayout |
createNodeLayout()
Creates a new implementation of
INodeLayout. |
IEdgeLabelLayout[] |
getLabelLayout(Edge edge)
Returns the layout information for all labels associated with the given edge.
|
INodeLabelLayout[] |
getLabelLayout(Node node)
Returns the layout information for all labels associated with the given node.
|
IEdgeLayout |
getLayout(Edge edge)
Returns the layout information for the given edge.
|
INodeLayout |
getLayout(Node node)
Returns the layout information for the given node.
|
Edge |
getOwner(IEdgeLabelLayout labelLayout)
Returns the edge to which the given
IEdgeLabelLayout belongs. |
Node |
getOwner(INodeLabelLayout labelLayout)
Returns the node to which the given
INodeLabelLayout belongs. |
void |
setLabelLayout(Edge edge,
IEdgeLabelLayout[] layout)
Specifies the layout information for all associated labels of the given edge.
|
void |
setLabelLayout(Node node,
INodeLabelLayout layout)
Specifies the layout information for all associated labels of the given node in case there is only one label.
|
void |
setLabelLayout(Node node,
INodeLabelLayout[] layout)
Specifies the layout information for all associated labels of the given node.
|
void |
setLayout(Edge edge,
IEdgeLayout layout)
Specifies the layout information for the given edge.
|
void |
setLayout(Node node,
INodeLayout layout)
Specifies the layout information for the given node.
|
getBoundingBox, getBoundingBox, getCenter, getCenterX, getCenterY, getEdgeList, getHeight, getLocation, getPath, getPathList, getPointList, getPoints, getSize, getSourcePointAbs, getSourcePointRel, getTargetPointAbs, getTargetPointRel, getWidth, getX, getY, moveBy, setCenter, setCenter, setEndPointsAbs, setLocation, setLocation, setPath, setPath, setPoints, setPoints, setSize, setSize, setSourcePointAbs, setSourcePointRel, setTargetPointAbs, setTargetPointReladdDataProvider, changeEdge, changeEdge, changeEdge, clear, contains, contains, containsEdge, createCopy, createEdge, createEdge, createEdgeMap, createGraph, createNode, createNodeMap, disposeEdgeMap, disposeNodeMap, edgeCount, edgeObjects, firstEdge, firstNode, firstOutEdge, getDataProvider, getDataProviderKeys, getEdgeArray, getEdgeCursor, getEdges, getNodeArray, getNodeCursor, getNodes, getRegisteredEdgeMaps, getRegisteredNodeMaps, getSource, getTarget, hasListeners, hide, hide, isEmpty, lastEdge, lastNode, moveToFirst, moveToFirst, moveToLast, moveToLast, nodeCount, nodeObjects, printNodeSlotSize, reInsertEdge, reInsertNode, removeDataProvider, removeEdge, removeNode, reverseEdge, sortEdges, sortEdges, sortNodes, toString, unhide, unhideprotected Map<Object,Object> edgeLabelFeatureMap
Map associating the owner of an edge label with the edge label itself.protected IEdgeMap edgeLabelMap
IEdgeMap associating IEdgeLabelLayouts with the edges of this graph.setLabelLayout(Edge, IEdgeLabelLayout[])protected Map<Object,Object> nodeLabelFeatureMap
Map associating the owner of a node label with the node label itself.protected INodeMap nodeLabelMap
INodeMap associating INodeLabelLayouts with the nodes of this graph.setLabelLayout(Node, INodeLabelLayout[])public DefaultLayoutGraph()
DefaultLayoutGraph instance with default settings.public DefaultLayoutGraph(LayoutGraph argGraph)
DefaultLayoutGraph instance which is a copy of the given graph.argGraph - the original graphpublic DefaultLayoutGraph(LayoutGraph graph, ICursor nodeSubset)
DefaultLayoutGraph instance which is a copy of the given subgraph.graph - the original graphnodeSubset - the nodes that induce a subgraph of the original graphprotected IEdgeLayout createEdgeLayout()
IEdgeLayout.
This method is called by getLayout(Edge) if there is no layout information assigned to an edge, yet. It may be
overridden to create custom IEdgeLayouts.
protected ILabelLayoutFactory createLabelFactory()
LayoutGraphILabelLayoutFactory for this LayoutGraph that can be used for copying layout information
of labels.createLabelFactory in class LayoutGraphILabelLayoutFactoryprotected INodeLayout createNodeLayout()
INodeLayout.
This method is called by getLayout(Node) if there is no layout information assigned to a node, yet. It may be
overridden to create custom INodeLayouts.
public IEdgeLabelLayout[] getLabelLayout(Edge edge)
LayoutGraphThe layout information consists of the location, size and orientation of the label.
getLabelLayout in class LayoutGraphedge - the edgepublic INodeLabelLayout[] getLabelLayout(Node node)
LayoutGraphThe layout information consists of the location, size and orientation of the label.
getLabelLayout in class LayoutGraphnode - the nodepublic IEdgeLayout getLayout(Edge edge)
LayoutGraphThe layout information consists of the locations of the control points and end points of the edge.
getLayout in class LayoutGraphedge - the edgepublic INodeLayout getLayout(Node node)
LayoutGraphThe layout information consists of the location and size of the node.
getLayout in class LayoutGraphnode - the nodepublic Edge getOwner(IEdgeLabelLayout labelLayout)
LayoutGraphIEdgeLabelLayout belongs.getOwner in class LayoutGraphlabelLayout - the label's layout informationpublic Node getOwner(INodeLabelLayout labelLayout)
LayoutGraphINodeLabelLayout belongs.getOwner in class LayoutGraphlabelLayout - the label's layout informationpublic void setLabelLayout(Edge edge, IEdgeLabelLayout[] layout)
The layout information consists of the location, size and orientation of the label.
edge - the edgelayout - the layout information for the labels of the edgepublic void setLabelLayout(Node node, INodeLabelLayout layout)
The layout information consists of the location, size and orientation of the label.
node - the nodelayout - the layout information for the label of the nodepublic void setLabelLayout(Node node, INodeLabelLayout[] layout)
The layout information consists of the location, size and orientation of the label.
node - the nodelayout - the layout information for the labels of the nodepublic void setLayout(Edge edge, IEdgeLayout layout)
The layout information consists of the locations of the control and end points of the edge.
edge - the edgelayout - the layout information for the edgepublic void setLayout(Node node, INodeLayout layout)
The layout information consists of the location and size of the node.
node - the nodelayout - the layout information for the node