|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.base.Graph
y.layout.LayoutGraph
y.layout.DefaultLayoutGraph
public class DefaultLayoutGraph
This class is a default implementation of the abstract class LayoutGraph.
| Field Summary | |
|---|---|
protected Map |
edgeLabelFeatureMap
Map used to associate the owner of an edge label with the edge label itself. |
protected EdgeMap |
edgeLabelMap
EdgeMap used to associate edge label layouts with the edges of this graph. |
protected Map |
nodeLabelFeatureMap
Map used to associate the owner of a node label with the node label itself. |
protected NodeMap |
nodeLabelMap
NodeMap used to associate node label layouts with the nodes of this graph. |
| Fields inherited from class y.base.Graph |
|---|
AFTER, BEFORE |
| Constructor Summary | |
|---|---|
DefaultLayoutGraph()
Creates a new Layout Graph |
|
DefaultLayoutGraph(DefaultLayoutGraph graph,
YCursor nodeSubset)
Creates a copy of the given subgraph. |
|
DefaultLayoutGraph(LayoutGraph argGraph)
Creates a copy of the given subgraph. |
|
DefaultLayoutGraph(LayoutGraph graph,
YCursor nodeSubset)
Creates a copy of the given subgraph. |
|
| Method Summary | |
|---|---|
protected EdgeLayout |
createEdgeLayout()
Override this to create your own EdgeLayouts. |
protected GraphCopier.CopyFactory |
createGraphCopyFactory()
Creates a new LayoutGraphCopyFactory.HierarchicGraphCopyFactory. |
protected NodeLayout |
createNodeLayout()
Override this to create your own NodeLayouts. |
Edge |
getFeature(EdgeLabelLayout labelLayout)
Returns the edge which is described by a given label layout. |
Node |
getFeature(NodeLabelLayout labelLayout)
Returns the node which is described by a given label layout. |
EdgeLabelLayout[] |
getLabelLayout(Edge edge)
Returns EdgeLabelLayout objects which describe the layouts of the labels that belong to the given edge. |
NodeLabelLayout[] |
getLabelLayout(Node node)
Returns NodeLabelLayout objects that describe the layouts of the labels belonging to the given node. |
EdgeLayout |
getLayout(Edge e)
Returns the layout information for an edge in the drawing. |
NodeLayout |
getLayout(Node v)
Returns the layout information for a node in the drawing. |
void |
setLabelLayout(Edge edge,
EdgeLabelLayout[] layout)
Sets the EdgeLabelLayout objects which describe the layouts of the labels that belong to the given edge. |
void |
setLabelLayout(Node node,
NodeLabelLayout layout)
Sets the NodeLabelLayout object which describes the layout of the label that belongs to the given node. |
void |
setLabelLayout(Node node,
NodeLabelLayout[] llayout)
Sets the NodeLabelLayout objects which describe the layouts of the labels that belong to the given node. |
void |
setLayout(Edge e,
EdgeLayout layout)
Sets the layout information for an edge in the drawing. |
void |
setLayout(Node v,
NodeLayout layout)
Sets the layout information for a node in the drawing. |
| Methods inherited from class y.layout.LayoutGraph |
|---|
getBoundingBox, getCenter, getCenterX, getCenterY, getEdgeLabelLayout, getEdgeLayout, getEdgeList, getHeight, getLocation, getNodeLabelLayout, getNodeLayout, getPath, getPathList, getPointList, getPoints, getRectangle, getSize, getSourcePointAbs, getSourcePointRel, getTargetPointAbs, getTargetPointRel, getWidth, getX, getY, moveBy, setCenter, setCenter, setEndPointsAbs, setLocation, setLocation, setPath, setPath, setPoints, setPoints, setSize, setSize, setSourcePointAbs, setSourcePointRel, setTargetPointAbs, setTargetPointRel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected NodeMap nodeLabelMap
setLabelLayout(y.base.Node,NodeLabelLayout[])protected EdgeMap edgeLabelMap
setLabelLayout(y.base.Edge, EdgeLabelLayout[])protected Map nodeLabelFeatureMap
protected Map edgeLabelFeatureMap
| Constructor Detail |
|---|
public DefaultLayoutGraph()
public DefaultLayoutGraph(LayoutGraph argGraph)
public DefaultLayoutGraph(LayoutGraph graph,
YCursor nodeSubset)
public DefaultLayoutGraph(DefaultLayoutGraph graph,
YCursor nodeSubset)
| Method Detail |
|---|
protected GraphCopier.CopyFactory createGraphCopyFactory()
LayoutGraphCopyFactory.HierarchicGraphCopyFactory.
createGraphCopyFactory in class LayoutGraphpublic NodeLayout getLayout(Node v)
getLayout in class LayoutGraphv - a node in the drawing.
node.
public void setLayout(Node v,
NodeLayout layout)
public void setLayout(Edge e,
EdgeLayout layout)
public EdgeLayout getLayout(Edge e)
getLayout in class LayoutGraphe - a edge in the drawing.
public NodeLabelLayout[] getLabelLayout(Node node)
getLabelLayout in class LayoutGraphnode - a node in the drawing.
public void setLabelLayout(Node node,
NodeLabelLayout layout)
node - a node in the drawing.layout - a layout object for the node label
public void setLabelLayout(Node node,
NodeLabelLayout[] llayout)
node - a node in the drawing.llayout - an array of node label layout objects
public void setLabelLayout(Edge edge,
EdgeLabelLayout[] layout)
edge - an edge in the drawing.layout - an array of edge label layout objectspublic EdgeLabelLayout[] getLabelLayout(Edge edge)
getLabelLayout in class LayoutGraphedge - an edge in the drawing.
public Node getFeature(NodeLabelLayout labelLayout)
getFeature in class LayoutGraphpublic Edge getFeature(EdgeLabelLayout labelLayout)
getFeature in class LayoutGraphprotected EdgeLayout createEdgeLayout()
protected NodeLayout createNodeLayout()
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||