de.cau.cs.kieler.kiml.graphiti
Class GraphitiLayoutCommand
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.transaction.RecordingCommand
de.cau.cs.kieler.kiml.graphiti.GraphitiLayoutCommand
- All Implemented Interfaces:
- Command, ConditionalRedoCommand
public class GraphitiLayoutCommand
- extends RecordingCommand
A command for applying the result of automatic layout to a Graphiti diagram.
- Rating

Method Summary |
void |
add(KGraphElement graphElement,
org.eclipse.graphiti.mm.pictograms.PictogramElement pictogramElement)
Adds the given element to this command. |
protected void |
doExecute()
|
KVectorChain |
getBendPoints(KEdge edge)
Get a vector chain holding the bend points for the given edge. |
INVIS_INSETS
public static final IProperty<KInsets> INVIS_INSETS
- node property for the insets caused by invisible shapes.
GraphitiLayoutCommand
public GraphitiLayoutCommand(TransactionalEditingDomain domain,
org.eclipse.graphiti.features.IFeatureProvider thefeatureProvider)
- Creates a Graphiti layout command.
- Parameters:
domain
- the transactional editing domainthefeatureProvider
- the feature provider
add
public void add(KGraphElement graphElement,
org.eclipse.graphiti.mm.pictograms.PictogramElement pictogramElement)
- Adds the given element to this command.
- Parameters:
graphElement
- an element of the layout graphpictogramElement
- the corresponding pictogram element
doExecute
protected void doExecute()
-
- Specified by:
doExecute
in class RecordingCommand
getBendPoints
public KVectorChain getBendPoints(KEdge edge)
- Get a vector chain holding the bend points for the given edge.
- Parameters:
edge
- a layout edge
- Returns:
- the bend points for the edge