de.cau.cs.kieler.papyrus
Class MultiPartDiagramLayoutManager

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.papyrus.MultiPartDiagramLayoutManager

public class MultiPartDiagramLayoutManager
extends GmfDiagramLayoutManager

Layout manager wrapper for the Papyrus multi diagram editor.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
MAX_PROGRESS_LEVELS
 
Constructor Summary
MultiPartDiagramLayoutManager()
           
 
Method Summary
 KNode buildLayoutGraph(IWorkbenchPart workbenchPart, EditPart editPart, boolean layoutAncestors)
          Builds a KGraph instance for the given editor or edit part.
 IGraphicalFrameworkBridge getBridge()
          Returns the graphical framework bridge for this layout manager.
 boolean supports(IWorkbenchPart workbenchPart)
          Determines whether this layout manager is able to perform layout for the given editor.
 
Methods inherited from class de.cau.cs.kieler.kiml.gmf.GmfDiagramLayoutManager
applyLayout, cleanupAncestryPath, doBuildLayoutGraph, getCachedLayout, getDiagramEditPart, getEditPart, getEditPart2GraphElemMap, getGraphElem2EditPartMap, getLayoutCommand, getLayoutConfig, getLayoutGraph, getLayoutNode, processEdgeLabels, setEdgeLayout, setLayoutCommand, supports, transferLayout
 
Methods inherited from class de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
applyAndZoom, applyAnimatedLayout, calcAnimationTime, getExternalConfig, getPriority, getProgressMonitor, 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

MultiPartDiagramLayoutManager

public MultiPartDiagramLayoutManager()
Method Detail

supports

public boolean supports(IWorkbenchPart workbenchPart)
Determines whether this layout manager is able to perform layout for the given editor.

Overrides:
supports in class GmfDiagramLayoutManager
Parameters:
workbenchPart - a workbench part
Returns:
true if this layout manager supports the editor part

buildLayoutGraph

public KNode buildLayoutGraph(IWorkbenchPart workbenchPart,
                              EditPart editPart,
                              boolean layoutAncestors)
Builds a KGraph instance for the given editor or edit part. The resulting layout graph should reflect the structure of edit parts in the original diagram.

Overrides:
buildLayoutGraph in class GmfDiagramLayoutManager
Parameters:
workbenchPart - the workbench part for which layout is performed, or null
editPart - the parent edit part for which layout is performed, or null if the whole diagram shall be layouted
layoutAncestors - if true, layout is not only performed for the selected edit part, but also for its ancestors
Returns:
a layout graph instance

getBridge

public IGraphicalFrameworkBridge getBridge()
Returns the graphical framework bridge for this layout manager.

Overrides:
getBridge in class GmfDiagramLayoutManager
Returns:
a framework bridge that is suitable for diagrams that are managed by this layout manager