jdsl.extension.LEDA.Layout
Class XYGraphLayout

java.lang.Object
  |
  +--jdsl.extension.LEDA.Layout.DefaultGraphLayout
        |
        +--jdsl.extension.LEDA.Layout.XYGraphLayout

public class XYGraphLayout
extends DefaultGraphLayout
implements java.lang.Cloneable, GraphLayout

XYGraphLayout provides a class for graph layout algorithms. All vertices are set positions defined by to functions.


Constructor Summary
XYGraphLayout()
          Empty constructor.
XYGraphLayout(XYGraphLayout other)
          A Copy-Constructor.
 
Method Summary
 void calculation(InspectableVertexAttribute_double vrX, InspectableVertexAttribute_double vrY, jdsl.graph.api.VertexIterator aVI)
          Calculate layout based on given InspectableVertexAttribute_doubles.
 void calculationX(InspectableVertexAttribute_double vrX, jdsl.graph.api.VertexIterator aVI)
          Calculate half of a layout based on given vertexRating.
 void calculationY(InspectableVertexAttribute_double vrY, jdsl.graph.api.VertexIterator aVI)
          Calculate half of a layout based on given vertexRating.
 java.lang.Object clone()
          Creates and returns a copy of this object.
 
Methods inherited from class jdsl.extension.LEDA.Layout.DefaultGraphLayout
calculation, calculation, calculation, clearLayout, getPosition, getPosition, merge, merge, setEdgeAsStraightLine, setPosition, setPosition, setX, setY, update, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYGraphLayout

public XYGraphLayout()
Empty constructor.

XYGraphLayout

public XYGraphLayout(XYGraphLayout other)
A Copy-Constructor.
Parameters:
other - given layout to copy
Method Detail

clone

public java.lang.Object clone()
Creates and returns a copy of this object.
Returns:
a clone of this instance.
Throws:
OutOfMemoryError - if there is not enough memory
Overrides:
clone in class DefaultGraphLayout
See Also:
Cloneable

calculationX

public void calculationX(InspectableVertexAttribute_double vrX,
                         jdsl.graph.api.VertexIterator aVI)
Calculate half of a layout based on given vertexRating. Vertices are place on point with X-Coordinate determind by vrX.
Parameters:
vrX - given X-Coordinates

calculationY

public void calculationY(InspectableVertexAttribute_double vrY,
                         jdsl.graph.api.VertexIterator aVI)
Calculate half of a layout based on given vertexRating. Vertices are place on point with Y-Coordinate determind by vrY.
Parameters:
vrY - given Y-Coordinates

calculation

public void calculation(InspectableVertexAttribute_double vrX,
                        InspectableVertexAttribute_double vrY,
                        jdsl.graph.api.VertexIterator aVI)
Calculate layout based on given InspectableVertexAttribute_doubles. Vertices are place on point with X-Coordinate determind by vrX and Y-Coordinate determind by vrY.
Parameters:
vrX - given X-Coordinates
vrY - given Y-Coordinates