y.layout
Class DefaultGraphLayout

java.lang.Object
  |
  +--y.layout.DefaultGraphLayout
All Implemented Interfaces:
GraphLayout

public class DefaultGraphLayout
extends Object
implements GraphLayout

This class is a default implementation of the SimpleGraphLayout interface.


Constructor Summary
DefaultGraphLayout()
           
 
Method Summary
 Rectangle getBoundingBox()
          Returns the bounding box of this graph layout This is the smallest rectangle containing the entire layout.
 EdgeLabelLayout[] getEdgeLabelLayout(Object edge)
          Returns an array of layout information for all edge labels belonging to the given edge.
 EdgeLayout getEdgeLayout(Object edge)
          Returns the layout information for a given edge.
 NodeLabelLayout[] getNodeLabelLayout(Object node)
          Returns an array of layout information for all node labels belonging to the given node.
 NodeLayout getNodeLayout(Object node)
          Returns the layout information for a given node.
 void setEdgeLabelLayout(Object node, EdgeLabelLayout[] layout)
           
 void setEdgeLayout(Object edge, EdgeLayout layout)
           
 void setNodeLabelLayout(Object node, NodeLabelLayout[] layout)
           
 void setNodeLayout(Object node, NodeLayout layout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGraphLayout

public DefaultGraphLayout()
Method Detail

setNodeLayout

public void setNodeLayout(Object node,
                          NodeLayout layout)

setEdgeLayout

public void setEdgeLayout(Object edge,
                          EdgeLayout layout)

getEdgeLayout

public EdgeLayout getEdgeLayout(Object edge)
Description copied from interface: GraphLayout
Returns the layout information for a given edge.

Specified by:
getEdgeLayout in interface GraphLayout

getNodeLayout

public NodeLayout getNodeLayout(Object node)
Description copied from interface: GraphLayout
Returns the layout information for a given node.

Specified by:
getNodeLayout in interface GraphLayout

setNodeLabelLayout

public void setNodeLabelLayout(Object node,
                               NodeLabelLayout[] layout)

getNodeLabelLayout

public NodeLabelLayout[] getNodeLabelLayout(Object node)
Description copied from interface: GraphLayout
Returns an array of layout information for all node labels belonging to the given node.

Specified by:
getNodeLabelLayout in interface GraphLayout

setEdgeLabelLayout

public void setEdgeLabelLayout(Object node,
                               EdgeLabelLayout[] layout)

getEdgeLabelLayout

public EdgeLabelLayout[] getEdgeLabelLayout(Object edge)
Description copied from interface: GraphLayout
Returns an array of layout information for all edge labels belonging to the given edge.

Specified by:
getEdgeLabelLayout in interface GraphLayout

getBoundingBox

public Rectangle getBoundingBox()
Returns the bounding box of this graph layout This is the smallest rectangle containing the entire layout.

Specified by:
getBoundingBox in interface GraphLayout

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003