|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager
de.cau.cs.kieler.kiml.graphiti.GraphitiDiagramLayoutManager
public class GraphitiDiagramLayoutManager
Generic layout manager implementation for Graphiti diagrams.
Field Summary |
---|
Fields inherited from class de.cau.cs.kieler.kiml.ui.layout.DiagramLayoutManager |
---|
MAX_PROGRESS_LEVELS |
Constructor Summary | |
---|---|
GraphitiDiagramLayoutManager()
|
Method Summary | |
---|---|
protected void |
applyLayout()
Applies the transferred layout to the original diagram. |
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. |
protected ICachedLayout |
getCachedLayout()
Returns the cached layout for the last layout run. |
EditPart |
getEditPart(KNode knode)
Returns the edit part associated with the given layout node. |
ILayoutConfig |
getLayoutConfig(EditPart editPart)
Returns a layout configuration for the given edit part. |
KNode |
getLayoutGraph()
Returns the last built layout graph. |
protected boolean |
supports(EditPart editPart)
Determines whether this layout manager is able to perform layout for the given edit part. |
protected boolean |
supports(IWorkbenchPart workbenchPart)
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.ui.layout.DiagramLayoutManager |
---|
applyAndZoom, applyAnimatedLayout, calcAnimationTime, getExternalConfig, getLayoutNode, 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 |
---|
public GraphitiDiagramLayoutManager()
Method Detail |
---|
protected boolean supports(IWorkbenchPart workbenchPart)
supports
in class DiagramLayoutManager
workbenchPart
- a workbench part
protected boolean supports(EditPart editPart)
supports
in class DiagramLayoutManager
editPart
- an edit part
public IGraphicalFrameworkBridge getBridge()
getBridge
in class DiagramLayoutManager
public ILayoutConfig getLayoutConfig(EditPart editPart)
editPart
is null
, a generic layout configuration is
created.
getLayoutConfig
in class DiagramLayoutManager
editPart
- an edit part
public KNode buildLayoutGraph(IWorkbenchPart workbenchPart, EditPart editPart, boolean layoutAncestors)
buildLayoutGraph
in class DiagramLayoutManager
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
protected void transferLayout(boolean cacheLayout)
transferLayout
in class DiagramLayoutManager
cacheLayout
- if true, the layout result is cached for the underlying modelprotected void applyLayout()
applyLayout
in class DiagramLayoutManager
public KNode getLayoutGraph()
getLayoutGraph
in class DiagramLayoutManager
protected ICachedLayout getCachedLayout()
getCachedLayout
in class DiagramLayoutManager
public EditPart getEditPart(KNode knode)
#buildLayoutGraph(IEditorPart, EditPart, boolean)
was
called.
getEditPart
in class DiagramLayoutManager
knode
- a node from the layout graph
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |