org.wilmascope.multiscalelayout
Class MultiScaleLayout

java.lang.Object
  extended by org.wilmascope.graph.LayoutEngine
      extended by org.wilmascope.multiscalelayout.MultiScaleLayout

public class MultiScaleLayout
extends LayoutEngine

Description:

$Id: MultiScaleLayout.java,v 1.11 2004/11/19 09:14:24 tgdwyer Exp $

Version:
$Revision: 1.11 $

unascribed

Field Summary
static float scale
           
 
Constructor Summary
MultiScaleLayout()
           
 
Method Summary
 boolean applyLayout()
          apply the changes calculated by calculateLayout()
 void calculateLayout()
          calculate the changes required to move the graph to a nicer layout
 EdgeLayout createEdgeLayout(Edge e)
          Factory method to create a new EdgeLayout implementation compatible with the layout engine implementing this interface.
 NodeLayout createNodeLayout(Node n)
          Factory method to create a new NodeLayout implementation compatible with the layout engine implementing this interface.
 javax.swing.JPanel getControls()
           
 java.lang.String getName()
          Return a string descriptor for the layout engine type.
 java.lang.String getTypeName()
           
 void init(Cluster root)
          The LayoutEngine should have no constructor.
 
Methods inherited from class org.wilmascope.graph.LayoutEngine
getProperties, getRoot, isIterative, resetProperties, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scale

public static float scale
Constructor Detail

MultiScaleLayout

public MultiScaleLayout()
Method Detail

getTypeName

public java.lang.String getTypeName()

init

public void init(Cluster root)
Description copied from class: LayoutEngine
The LayoutEngine should have no constructor. It should be initialised with this method.

Overrides:
init in class LayoutEngine

calculateLayout

public void calculateLayout()
calculate the changes required to move the graph to a nicer layout

Overrides:
calculateLayout in class LayoutEngine

applyLayout

public boolean applyLayout()
apply the changes calculated by calculateLayout()

Specified by:
applyLayout in class LayoutEngine
Returns:
true when a stable state is reached

createNodeLayout

public NodeLayout createNodeLayout(Node n)
Description copied from class: LayoutEngine
Factory method to create a new NodeLayout implementation compatible with the layout engine implementing this interface.

Specified by:
createNodeLayout in class LayoutEngine

createEdgeLayout

public EdgeLayout createEdgeLayout(Edge e)
Description copied from class: LayoutEngine
Factory method to create a new EdgeLayout implementation compatible with the layout engine implementing this interface.

Specified by:
createEdgeLayout in class LayoutEngine

getControls

public javax.swing.JPanel getControls()
Specified by:
getControls in class LayoutEngine

getName

public java.lang.String getName()
Description copied from class: LayoutEngine
Return a string descriptor for the layout engine type. Useful in GUI elements such as comboboxes

Specified by:
getName in class LayoutEngine