de.cau.cs.kieler.papyrus
Class MultiPartDiagramLayoutManager
java.lang.Object
de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
de.cau.cs.kieler.kiml.gmf.GmfDiagramLayoutManager
de.cau.cs.kieler.papyrus.MultiPartDiagramLayoutManager
public class MultiPartDiagramLayoutManager
- extends GmfDiagramLayoutManager
Layout manager wrapper for the Papyrus multi diagram editor.
- Rating

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 |
MultiPartDiagramLayoutManager
public MultiPartDiagramLayoutManager()
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 layoutedlayoutAncestors
- 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