|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of diagram part that is handled by this diagram layout managerpublic interface IDiagramLayoutManager<T>
Interface for managers of diagram layout.
Method Summary | |
---|---|
void |
applyLayout(LayoutMapping<T> mapping,
boolean zoomToFit,
int animationTime)
Apply the computed layout back to the diagram. |
LayoutMapping<T> |
buildLayoutGraph(IWorkbenchPart workbenchPart,
Object diagramPart)
Build a KGraph instance for the given diagram. |
IMutableLayoutConfig |
getLayoutConfig()
Return a framework-specific layout configuration. |
boolean |
supports(Object object)
Determine whether this layout manager is able to perform layout for the given object. |
Method Detail |
---|
boolean supports(Object object)
object
- a workbench part or edit part
LayoutMapping<T> buildLayoutGraph(IWorkbenchPart workbenchPart, Object diagramPart)
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
void applyLayout(LayoutMapping<T> mapping, boolean zoomToFit, int animationTime)
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 animationIMutableLayoutConfig getLayoutConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |