|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.gmf.GmfCachedLayout
public class GmfCachedLayout
A cache for results of automatic layout. Can be used to repeatedly apply the same layout to a diagram.
Constructor Summary | |
---|---|
GmfCachedLayout(int initialCapacity)
Creates a cached layout with given initial capacity. |
Method Summary | |
---|---|
void |
addLayout(EObject modelObject,
KGraphElement graphElement)
Adds the given model object with associated layout to the cache. |
void |
addLayout(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart editPart,
KGraphElement graphElement)
Adds the given edit part with associated layout to the cache. |
void |
applyLayout(IEditorPart editorPart)
Applies the cached layout to the given editor part. |
void |
applyLayout(IEditorPart editorPart,
boolean animate)
Applies the cached layout to the given editor part. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GmfCachedLayout(int initialCapacity)
initialCapacity
- the initial capacity of the cacheMethod Detail |
---|
public void addLayout(EObject modelObject, KGraphElement graphElement)
modelObject
- a model objectgraphElement
- the associated layout graph elementpublic void addLayout(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart editPart, KGraphElement graphElement)
editPart
- an edit partgraphElement
- the associated layout graph elementpublic void applyLayout(IEditorPart editorPart, boolean animate)
applyLayout
in interface ICachedLayout
editorPart
- a diagram editor partanimate
- if true, Draw2D animation is activatedpublic void applyLayout(IEditorPart editorPart)
applyLayout
in interface ICachedLayout
editorPart
- a diagram editor part
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |