de.cau.cs.kieler.kiml.ui.layout
Class ApplyLayoutRequest
java.lang.Object
org.eclipse.gef.Request
de.cau.cs.kieler.kiml.ui.layout.ApplyLayoutRequest
public class ApplyLayoutRequest
- extends Request
Request for automatic layout on a set of edit parts of a diagram.
- Rating

- (2009-12-11) msp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQ_APPLY_LAYOUT
public static final String REQ_APPLY_LAYOUT
- the request type used to apply layout.
- See Also:
- Constant Field Values
ApplyLayoutRequest
public ApplyLayoutRequest()
- Creates a request to apply layout.
addElement
public void addElement(KGraphElement element,
GraphicalEditPart editPart)
- Adds the given graph element and edit part to the request.
- Parameters:
element
- graph element with layout dataeditPart
- the corresponding edit part
getElements
public List<Pair<KGraphElement,GraphicalEditPart>> getElements()
- Returns a list of the graph elements and edit parts of this request.
- Returns:
- a list with graph elements and corresponding edit parts