ConForM.CoopnTools.CoKer.Visual
Class HierarchicalLayouter

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.Visual.Layouter
        |
        +--ConForM.CoopnTools.CoKer.Visual.HierarchicalLayouter

public abstract class HierarchicalLayouter
extends Layouter

Abstract Hieracrchical Layouter of Graphical Visual Elements. An hierarchical layouter is a layouter able to layout a whole hierarchy of elements at a time (on the opposite side, layouters, as well as derived incremental layouters, perform layout containers per containers


Fields inherited from class ConForM.CoopnTools.CoKer.Visual.Layouter
env
 
Constructor Summary
HierarchicalLayouter(CoopnEnv env)
          Simple constructor.
 
Method Summary
protected abstract  void addContainer(GraphicalVisualContainer c, java.lang.Object graph)
          Start a sub-graph in the graph (imported as an Object from the layouter). abstract method top be implemented by actual layouters.
 void doLayout(GraphicalVisualRenderableGroup group)
          doLayout command.
protected abstract  void endContainer(java.lang.Object graph)
          End a sub-graph in the graph (imported as an Object from the layouter). abstract method top be implemented by actual layouters.
protected abstract  void modifyContainer(GraphicalVisualContainer c, java.lang.Object graph)
          Modify a container to take into account the new layout defined in the graph (imported as an Object from the layouter). abstract method top be implemented by actual layouters.
 
Methods inherited from class ConForM.CoopnTools.CoKer.Visual.Layouter
addArc, addNode, addSelectedNode, applyLayout, clearGraph, defaultLayouter, modifyArc, modifyNode, newGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchicalLayouter

public HierarchicalLayouter(CoopnEnv env)
Simple constructor.
Method Detail

addContainer

protected abstract void addContainer(GraphicalVisualContainer c,
                                     java.lang.Object graph)
Start a sub-graph in the graph (imported as an Object from the layouter). abstract method top be implemented by actual layouters.

endContainer

protected abstract void endContainer(java.lang.Object graph)
End a sub-graph in the graph (imported as an Object from the layouter). abstract method top be implemented by actual layouters.

modifyContainer

protected abstract void modifyContainer(GraphicalVisualContainer c,
                                        java.lang.Object graph)
Modify a container to take into account the new layout defined in the graph (imported as an Object from the layouter). abstract method top be implemented by actual layouters.

doLayout

public void doLayout(GraphicalVisualRenderableGroup group)
doLayout command. The layout is performed according to the hierarchy of graphical elements, i.e. containers are layouted before to be included into a more general group.
Overrides:
doLayout in class Layouter
Parameters:
group - the main group to layout.
movingElements - the set of the elements the layout of which can be modified during the layout.