de.cau.cs.kieler.kiml.ui.diagram
Class GefDiagramLayoutManager<T>
java.lang.Object
de.cau.cs.kieler.kiml.ui.diagram.GefDiagramLayoutManager<T>
- Type Parameters:
T
- the type of diagram part that is handled by this diagram layout manager
- All Implemented Interfaces:
- IDiagramLayoutManager<T>
- Direct Known Subclasses:
- GmfDiagramLayoutManager, GraphitiDiagramLayoutManager
public abstract class GefDiagramLayoutManager<T>
- extends Object
- implements IDiagramLayoutManager<T>
An abstract diagram layout manager for GEF-based implementations.
- Rating

Method Summary |
protected abstract void |
applyLayout(LayoutMapping<T> mapping)
Apply the transferred layout to the original diagram. |
void |
applyLayout(LayoutMapping<T> mapping,
boolean zoomToFit,
int animationTime)
Apply the computed layout back to the diagram. |
protected abstract void |
transferLayout(LayoutMapping<T> mapping)
Transfer all layout data from the last created KGraph instance to the
original diagram. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GefDiagramLayoutManager
public GefDiagramLayoutManager()
applyLayout
public void applyLayout(LayoutMapping<T> mapping,
boolean zoomToFit,
int animationTime)
- Apply the computed layout back to the diagram.
- Specified by:
applyLayout
in interface IDiagramLayoutManager<T>
- Parameters:
mapping
- a layout mapping that was created by this layout managerzoomToFit
- whether the diagram should zoom to fitanimationTime
- the animation time in milliseconds, or 0 for no animation
transferLayout
protected abstract void transferLayout(LayoutMapping<T> mapping)
- Transfer 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.
- Parameters:
mapping
- a layout mapping that was created by this layout manager
applyLayout
protected abstract void applyLayout(LayoutMapping<T> mapping)
- Apply the transferred layout to the original diagram. This final step
is where the actual change to the diagram is done.
- Parameters:
mapping
- a layout mapping that was created by this layout manager