de.cau.cs.kieler.keg.diagram.custom
Class GraphsDiagramLayoutManager
java.lang.Object
de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
de.cau.cs.kieler.kiml.gmf.GmfDiagramLayoutManager
de.cau.cs.kieler.keg.diagram.custom.GraphsDiagramLayoutManager
public class GraphsDiagramLayoutManager
- extends GmfDiagramLayoutManager
Specialized Layout Manager for Graphs diagrams.
- Rating

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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphsDiagramLayoutManager
public GraphsDiagramLayoutManager()
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