|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.ui.diagram.GefDiagramLayoutManager<org.eclipse.graphiti.mm.pictograms.PictogramElement>
de.cau.cs.kieler.kiml.graphiti.GraphitiDiagramLayoutManager
public class GraphitiDiagramLayoutManager
Generic layout manager implementation for Graphiti diagrams.
Field Summary | |
---|---|
static IProperty<List<org.eclipse.graphiti.mm.pictograms.Connection>> |
CONNECTIONS
list of all connections in the diagram. |
static IProperty<org.eclipse.graphiti.ui.editor.DiagramEditor> |
DIAGRAM_EDITOR
diagram editor of the currently layouted diagram. |
static IProperty<Command> |
LAYOUT_COMMAND
the command that is executed for applying automatic layout. |
Constructor Summary | |
---|---|
GraphitiDiagramLayoutManager()
|
Method Summary | |
---|---|
protected void |
applyLayout(LayoutMapping<org.eclipse.graphiti.mm.pictograms.PictogramElement> mapping)
Apply the transferred layout to the original diagram. |
LayoutMapping<org.eclipse.graphiti.mm.pictograms.PictogramElement> |
buildLayoutGraph(IWorkbenchPart workbenchPart,
Object diagramPart)
Build a KGraph instance for the given diagram. |
static KInsets |
calcInsets(org.eclipse.graphiti.mm.algorithms.GraphicsAlgorithm graphicsAlgorithm)
Calculate insets from an invisible rectangle to the first visible shape. |
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. |
protected void |
transferLayout(LayoutMapping<org.eclipse.graphiti.mm.pictograms.PictogramElement> mapping)
Transfer all layout data from the last created KGraph instance to the original diagram. |
Methods inherited from class de.cau.cs.kieler.kiml.ui.diagram.GefDiagramLayoutManager |
---|
applyLayout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IProperty<org.eclipse.graphiti.ui.editor.DiagramEditor> DIAGRAM_EDITOR
public static final IProperty<Command> LAYOUT_COMMAND
public static final IProperty<List<org.eclipse.graphiti.mm.pictograms.Connection>> CONNECTIONS
Constructor Detail |
---|
public GraphitiDiagramLayoutManager()
Method Detail |
---|
public boolean supports(Object object)
object
- a workbench part or edit part
public LayoutMapping<org.eclipse.graphiti.mm.pictograms.PictogramElement> 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
protected void transferLayout(LayoutMapping<org.eclipse.graphiti.mm.pictograms.PictogramElement> mapping)
transferLayout
in class GefDiagramLayoutManager<org.eclipse.graphiti.mm.pictograms.PictogramElement>
mapping
- a layout mapping that was created by this layout managerprotected void applyLayout(LayoutMapping<org.eclipse.graphiti.mm.pictograms.PictogramElement> mapping)
applyLayout
in class GefDiagramLayoutManager<org.eclipse.graphiti.mm.pictograms.PictogramElement>
mapping
- a layout mapping that was created by this layout managerpublic IMutableLayoutConfig getLayoutConfig()
public static KInsets calcInsets(org.eclipse.graphiti.mm.algorithms.GraphicsAlgorithm graphicsAlgorithm)
graphicsAlgorithm
- the parent graphics algorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |