Class ImprovedJGraphLayout

java.lang.Object
org.jgraph.layout.JGraphLayoutAlgorithm
de.saar.chorus.jgraph.improvedjgraph.layout.ImprovedJGraphLayout
Direct Known Subclasses:
GecodeTreeLayout

public abstract class ImprovedJGraphLayout extends org.jgraph.layout.JGraphLayoutAlgorithm
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    addRelXtoParent(org.jgraph.graph.DefaultGraphCell node, Integer x)
     
    abstract void
    addRelXtoRoot(org.jgraph.graph.DefaultGraphCell node, Integer x)
     
    abstract void
    addRelYpos(org.jgraph.graph.DefaultGraphCell node, Integer y)
     
    abstract Shape
    getNodesToShape(org.jgraph.graph.DefaultGraphCell node)
     
    abstract int
    getNodeWidth(org.jgraph.graph.DefaultGraphCell node)
    Returns the node with computed by the JDomGraph.
    abstract Integer
    getRelXtoParent(org.jgraph.graph.DefaultGraphCell node)
     
    abstract void
    putNodeToShape(org.jgraph.graph.DefaultGraphCell node, Shape shape)
     
    abstract void
    run(org.jgraph.JGraph gr, Object[] cells, int arg2)
    Starts the layout algorithm.

    Methods inherited from class org.jgraph.layout.JGraphLayoutAlgorithm

    createDialog, createDialog, createSettings, getHint, getMaximumProgress, getProgress, isAllowedToRun, populateDialog, run, setAllowedToRun, setMaximumProgress, setProgress

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImprovedJGraphLayout

      public ImprovedJGraphLayout()
  • Method Details

    • run

      public abstract void run(org.jgraph.JGraph gr, Object[] cells, int arg2)
      Starts the layout algorithm.
      Specified by:
      run in class org.jgraph.layout.JGraphLayoutAlgorithm
    • getRelXtoParent

      public abstract Integer getRelXtoParent(org.jgraph.graph.DefaultGraphCell node)
    • addRelXtoParent

      public abstract void addRelXtoParent(org.jgraph.graph.DefaultGraphCell node, Integer x)
    • addRelXtoRoot

      public abstract void addRelXtoRoot(org.jgraph.graph.DefaultGraphCell node, Integer x)
    • addRelYpos

      public abstract void addRelYpos(org.jgraph.graph.DefaultGraphCell node, Integer y)
    • getNodeWidth

      public abstract int getNodeWidth(org.jgraph.graph.DefaultGraphCell node)
      Returns the node with computed by the JDomGraph.
      Parameters:
      node - the node to compute the width for
      Returns:
      the width
    • getNodesToShape

      public abstract Shape getNodesToShape(org.jgraph.graph.DefaultGraphCell node)
    • putNodeToShape

      public abstract void putNodeToShape(org.jgraph.graph.DefaultGraphCell node, Shape shape)