de.cau.cs.kieler.papyrus
Class MultiPartDiagramLayoutManager
java.lang.Object
de.cau.cs.kieler.kiml.ui.diagram.GefDiagramLayoutManager<org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart>
de.cau.cs.kieler.kiml.gmf.GmfDiagramLayoutManager
de.cau.cs.kieler.papyrus.MultiPartDiagramLayoutManager
- All Implemented Interfaces:
- IDiagramLayoutManager<org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart>
public class MultiPartDiagramLayoutManager
- extends GmfDiagramLayoutManager
Layout manager wrapper for the Papyrus multi diagram editor.
- Rating

Method Summary |
LayoutMapping<org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart> |
buildLayoutGraph(IWorkbenchPart workbenchPart,
Object diagramPart)
Build a KGraph instance for the given diagram. |
boolean |
supports(Object object)
Determine whether this layout manager is able to perform layout for the given object. |
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(Object object)
- Determine whether this layout manager is able to perform layout for the given object.
- Specified by:
supports
in interface IDiagramLayoutManager<org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart>
- Overrides:
supports
in class GmfDiagramLayoutManager
- Parameters:
object
- a workbench part or edit part
- Returns:
- true if this layout manager supports the object
buildLayoutGraph
public LayoutMapping<org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart> buildLayoutGraph(IWorkbenchPart workbenchPart,
Object diagramPart)
- Build a KGraph instance for the given diagram. The resulting layout graph should reflect
the structure of the original diagram.
- Specified by:
buildLayoutGraph
in interface IDiagramLayoutManager<org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart>
- Overrides:
buildLayoutGraph
in class GmfDiagramLayoutManager
- Parameters:
workbenchPart
- the workbench part for which layout is performeddiagramPart
- the parent object for which layout is performed, or
null
if the whole diagram shall be layouted
- Returns:
- a layout graph mapping