|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.Request
de.cau.cs.kieler.kiml.ui.diagram.ApplyLayoutRequest
public class ApplyLayoutRequest
Request for automatic layout on a set of edit parts of a diagram.
Field Summary | |
---|---|
static String |
REQ_APPLY_LAYOUT
the request type used to apply layout. |
Constructor Summary | |
---|---|
ApplyLayoutRequest()
Creates a request to apply layout. |
Method Summary | |
---|---|
void |
addElement(KGraphElement element,
GraphicalEditPart editPart)
Adds the given graph element and edit part to the request. |
List<Pair<KGraphElement,GraphicalEditPart>> |
getElements()
Returns a list of the graph elements and edit parts of this request. |
float |
getXBound()
Returns the upper bound for horizontal coordinates. |
float |
getYBound()
Returns the upper bound for vertical coordinates. |
void |
setUpperBound(float x,
float y)
Set an upper bound on the coordinates of the layout graph. |
Methods inherited from class org.eclipse.gef.Request |
---|
getExtendedData, getType, setExtendedData, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REQ_APPLY_LAYOUT
Constructor Detail |
---|
public ApplyLayoutRequest()
Method Detail |
---|
public void addElement(KGraphElement element, GraphicalEditPart editPart)
element
- graph element with layout dataeditPart
- the corresponding edit partpublic List<Pair<KGraphElement,GraphicalEditPart>> getElements()
public void setUpperBound(float x, float y)
x
- the upper bound for horizontal coordinatesy
- the upper bound for vertical coordinatespublic float getXBound()
public float getYBound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |