|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--y.base.Graph
|
+--y.layout.LayoutGraph
|
+--y.layout.DefaultLayoutGraph
This class is an default implementation of the abstract class LayoutGraph.
| Field Summary | |
protected Hashtable |
edgeLabelFeatureMap
|
protected EdgeMap |
edgeLabelMap
|
protected Hashtable |
nodeLabelFeatureMap
|
protected NodeMap |
nodeLabelMap
|
| Fields inherited from class y.base.Graph |
AFTER, BEFORE, listeners |
| Constructor Summary | |
DefaultLayoutGraph()
Creates a new Layout Graph |
|
DefaultLayoutGraph(DefaultLayoutGraph graph,
YCursor nodeSubset)
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 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 |
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
protected EdgeMap edgeLabelMap
protected Hashtable nodeLabelFeatureMap
protected Hashtable edgeLabelFeatureMap
| Constructor Detail |
public DefaultLayoutGraph()
public DefaultLayoutGraph(LayoutGraph graph,
YCursor nodeSubset)
public DefaultLayoutGraph(DefaultLayoutGraph graph,
YCursor nodeSubset)
| Method Detail |
public 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 nodelabel
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-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||