de.cau.cs.kieler.keg.diagram.custom
Class GraphsDiagramLayoutManager

java.lang.Object
  extended by de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
      extended by de.cau.cs.kieler.kiml.gmf.GmfDiagramLayoutManager
          extended by de.cau.cs.kieler.keg.diagram.custom.GraphsDiagramLayoutManager

public class GraphsDiagramLayoutManager
extends GmfDiagramLayoutManager

Specialized Layout Manager for Graphs diagrams.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
MAX_PROGRESS_LEVELS
 
Constructor Summary
GraphsDiagramLayoutManager()
           
 
Method Summary
protected  KNode doBuildLayoutGraph(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart rootPart)
          Builds the layout graph for the given root edit part.
protected  boolean supports(EditPart editPart)
          Determines whether this layout manager is able to perform layout for the given edit part.
protected  boolean supports(IEditorPart editorPart)
          Determines whether this layout manager is able to perform layout for the given editor.
protected  void transferLayout(boolean cacheLayout)
          Transfers all layout data from the last created KGraph instance to the original diagram.
 
Methods inherited from class de.cau.cs.kieler.kiml.gmf.GmfDiagramLayoutManager
addChangeListener, applyLayout, buildLayoutGraph, cleanupAncestryPath, getCachedLayout, getCurrentEditPart, getDiagramEditPart, getEditPart, getEditPart2GraphElemMap, getGraphElem2EditPartMap, getInspector, getInspector, getLayoutCommand, getLayoutConfig, getLayoutGraph, getLayoutNode, getSelection, processLabels, removeChangeListener, setEdgeLayout, setLayoutCommand
 
Methods inherited from class de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
applyAndZoom, applyAnimatedLayout, calcAnimationTime, getExternalConfig, getPriority, layout, layout, layout, setLayoutConfig, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphsDiagramLayoutManager

public GraphsDiagramLayoutManager()
Method Detail

supports

protected boolean supports(IEditorPart editorPart)
Determines whether this layout manager is able to perform layout for the given editor.

Overrides:
supports in class GmfDiagramLayoutManager
Parameters:
editorPart - an editor part
Returns:
true if this layout manager supports the editor part

supports

protected boolean supports(EditPart editPart)
Determines whether this layout manager is able to perform layout for the given edit part.

Overrides:
supports in class GmfDiagramLayoutManager
Parameters:
editPart - an edit part
Returns:
true if this layout manager supports the edit part

doBuildLayoutGraph

protected KNode doBuildLayoutGraph(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart rootPart)
Builds the layout graph for the given root edit part.

Overrides:
doBuildLayoutGraph in class GmfDiagramLayoutManager
Parameters:
rootPart - the root edit part for layout
Returns:
layout graph layout graph that represents the structure contained in the root edit part

transferLayout

protected void transferLayout(boolean cacheLayout)
Transfers all layout data from the last created KGraph instance to the original diagram. The diagram is not modified yet, but all required preparations are performed.

Overrides:
transferLayout in class GmfDiagramLayoutManager
Parameters:
cacheLayout - if true, the layout result is cached for the underlying model