|
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 of the EditPart(s).
Constructor Summary | |
ChangeBoundsRequest()
Default constructor. |
|
ChangeBoundsRequest(Object type)
Creates a ChangeBoundsRequest with the given type. |
Method Summary | |
Point |
getLocation()
Returns the location of the mouse pointer. |
Point |
getMouseLocation()
Deprecated. Use getLocation() |
Point |
getMoveDelta()
Returns a Point representing the distance the EditPart has moved. |
int |
getResizeDirection()
Returns the direction the figure is being resized. |
Dimension |
getSizeDelta()
Returns a Dimension representing how much the EditPart has been resized. |
Rectangle |
getTransformedRectangle(Rectangle rect)
Transforms a copy of the passed in rectangle to account for the move and/or resize deltas and returns this copy. |
void |
setLocation(Point p)
Sets the location of the mouse pointer. |
void |
setMouseLocation(Point p)
Deprecated. Use setLocation(Point) |
void |
setMoveDelta(Point p)
Sets the move delta. |
void |
setResizeDirection(int dir)
Sets the direction the figure is being resized. |
void |
setSizeDelta(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 Point getLocation()
getLocation
in interface DropRequest
public Point getMouseLocation()
getLocation()
public Point getMoveDelta()
public int getResizeDirection()
PositionConstants.EAST
PositionConstants.WEST
PositionConstants.NORTH
PositionConstants.SOUTH
PositionConstants.NORTH_EAST
PositionConstants.NORTH_WEST
PositionConstants.SOUTH_EAST
PositionConstants.SOUTH_WEST
public Dimension getSizeDelta()
public Rectangle getTransformedRectangle(Rectangle rect)
rect
- the rectangle to transform
public void setMoveDelta(Point p)
p
- The Point representing the move deltapublic void setResizeDirection(int dir)
getResizeDirection()
public void setMouseLocation(Point p)
setLocation(Point)
p
- The location of the mouse pointer.public void setLocation(Point p)
p
- The location of the mouse pointer.public void setSizeDelta(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 |