Eclipse GEF
2.1

org.eclipse.gef.requests
Class ChangeBoundsRequest

java.lang.Object
  |
  +--org.eclipse.gef.Request
        |
        +--org.eclipse.gef.requests.GroupRequest
              |
              +--org.eclipse.gef.requests.ChangeBoundsRequest
All Implemented Interfaces:
DropRequest
Direct Known Subclasses:
AlignmentRequest

public class ChangeBoundsRequest
extends GroupRequest
implements DropRequest

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

ChangeBoundsRequest

public ChangeBoundsRequest()
Default constructor.


ChangeBoundsRequest

public ChangeBoundsRequest(Object type)
Creates a ChangeBoundsRequest with the given type.

Parameters:
type - The type of Request.
Method Detail

getLocation

public org.eclipse.draw2d.geometry.Point getLocation()
Returns the location of the mouse pointer.

Specified by:
getLocation in interface DropRequest
Returns:
The location of the mouse pointer.

getMouseLocation

public org.eclipse.draw2d.geometry.Point getMouseLocation()
Deprecated.  


getMoveDelta

public org.eclipse.draw2d.geometry.Point getMoveDelta()
Returns a Point representing the distance the EditPart has moved.

Returns:
A Point representing the distance the EditPart has moved.

getResizeDirection

public int getResizeDirection()
Returns the direction the figure is being resized. Possible values can be found in PositionConstants.


getSizeDelta

public org.eclipse.draw2d.geometry.Dimension getSizeDelta()
Returns a Dimension representing how much the EditPart has been resized.

Returns:
A Dimension representing how much the EditPart has been resized.

getTransformedRectangle

public org.eclipse.draw2d.geometry.Rectangle getTransformedRectangle(org.eclipse.draw2d.geometry.Rectangle rect)
Returns a Rectangle representing the new bounds.

Returns:
A Rectangle representing the new bounds.

setMoveDelta

public void setMoveDelta(org.eclipse.draw2d.geometry.Point p)
Sets the move delta.

Parameters:
p - The Point representing the move delta.

setResizeDirection

public void setResizeDirection(int dir)
Sets the direction the figure is being resized. Possible values can be found in PositionConstants.


setMouseLocation

public void setMouseLocation(org.eclipse.draw2d.geometry.Point p)
Deprecated.  


setLocation

public void setLocation(org.eclipse.draw2d.geometry.Point p)
Sets the location of the mouse pointer.

Parameters:
p - The location of the mouse pointer.

setSizeDelta

public void setSizeDelta(org.eclipse.draw2d.geometry.Dimension d)
Sets the size delta.

Parameters:
d - The Dimension representing the size delta.

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.