|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.Request | +--org.eclipse.gef.requests.GroupRequest | +--org.eclipse.gef.requests.ChangeBoundsRequest
A Request to change the bounds the EditPart(s).
Constructor Summary | |
ChangeBoundsRequest()
Default constructor. |
|
ChangeBoundsRequest(Object type)
Creates a ChangeBoundsRequest with the given type. |
Method Summary | |
org.eclipse.draw2d.geometry.Point |
getLocation()
Returns the location of the mouse pointer. |
org.eclipse.draw2d.geometry.Point |
getMouseLocation()
Deprecated. |
org.eclipse.draw2d.geometry.Point |
getMoveDelta()
Returns a Point representing the distance the EditPart has moved. |
int |
getResizeDirection()
Returns the direction the figure is being resized. |
org.eclipse.draw2d.geometry.Dimension |
getSizeDelta()
Returns a Dimension representing how much the EditPart has been resized. |
org.eclipse.draw2d.geometry.Rectangle |
getTransformedRectangle(org.eclipse.draw2d.geometry.Rectangle rect)
Returns a Rectangle representing the new bounds. |
void |
setLocation(org.eclipse.draw2d.geometry.Point p)
Sets the location of the mouse pointer. |
void |
setMouseLocation(org.eclipse.draw2d.geometry.Point p)
Deprecated. |
void |
setMoveDelta(org.eclipse.draw2d.geometry.Point p)
Sets the move delta. |
void |
setResizeDirection(int dir)
Sets the direction the figure is being resized. |
void |
setSizeDelta(org.eclipse.draw2d.geometry.Dimension d)
Sets the size delta. |
Methods inherited from class org.eclipse.gef.requests.GroupRequest |
getEditParts, setEditParts, setEditParts |
Methods inherited from class org.eclipse.gef.Request |
getType, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChangeBoundsRequest()
public ChangeBoundsRequest(Object type)
type
- The type of Request.Method Detail |
public org.eclipse.draw2d.geometry.Point getLocation()
getLocation
in interface DropRequest
public org.eclipse.draw2d.geometry.Point getMouseLocation()
public org.eclipse.draw2d.geometry.Point getMoveDelta()
public int getResizeDirection()
public org.eclipse.draw2d.geometry.Dimension getSizeDelta()
public org.eclipse.draw2d.geometry.Rectangle getTransformedRectangle(org.eclipse.draw2d.geometry.Rectangle rect)
public void setMoveDelta(org.eclipse.draw2d.geometry.Point p)
p
- The Point representing the move delta.public void setResizeDirection(int dir)
public void setMouseLocation(org.eclipse.draw2d.geometry.Point p)
public void setLocation(org.eclipse.draw2d.geometry.Point p)
p
- The location of the mouse pointer.public void setSizeDelta(org.eclipse.draw2d.geometry.Dimension d)
d
- The Dimension representing the size delta.
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |