|
Eclipse GEF 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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. |
boolean |
isCenteredResize()
Returns true if the request is for a centered resize. |
boolean |
isConstrainedMove()
Returns true if the request is for a constrained move |
boolean |
isConstrainedResize()
Returns true if the request is for a constrained resize |
void |
setCenteredResize(boolean value)
Used to set whether a centered resize is being performed. |
void |
setConstrainedMove(boolean value)
Used to set whether a constrained move is being performed. |
void |
setConstrainedResize(boolean value)
Used to set whether a constrained resize is being performed. |
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 |
getExtendedData, getType, setExtendedData, 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 boolean isCenteredResize()
true
if centered resizepublic boolean isConstrainedMove()
true
if the request is for a constrained move
true
if a constrained movepublic boolean isConstrainedResize()
true
if the request is for a constrained resize
true
if a constrained resizepublic void setCenteredResize(boolean value)
value
- true
if the request is for a centered resizepublic void setConstrainedMove(boolean value)
value
- true
if the request is for a constrained movepublic void setConstrainedResize(boolean value)
value
- true
if the request is for a constrained resizepublic void setMoveDelta(Point p)
p
- The Point representing the move deltapublic void setResizeDirection(int dir)
dir
- the direction of the resizegetResizeDirection()
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 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |