Eclipse GEF
2.1

org.eclipse.gef.requests
Class AlignmentRequest

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

public class AlignmentRequest
extends ChangeBoundsRequest


Constructor Summary
AlignmentRequest()
           
AlignmentRequest(Object type)
           
 
Method Summary
 int getAlignment()
           
 org.eclipse.draw2d.geometry.Rectangle getAlignmentRectangle()
           
 org.eclipse.draw2d.geometry.Rectangle getTransformedRectangle(org.eclipse.draw2d.geometry.Rectangle rect)
          Returns a Rectangle representing the new bounds.
 void setAlignment(int align)
           
 void setAlignmentRectangle(org.eclipse.draw2d.geometry.Rectangle rect)
           
 
Methods inherited from class org.eclipse.gef.requests.ChangeBoundsRequest
getLocation, getMouseLocation, getMoveDelta, getResizeDirection, getSizeDelta, setLocation, setMouseLocation, setMoveDelta, setResizeDirection, setSizeDelta
 
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

AlignmentRequest

public AlignmentRequest()

AlignmentRequest

public AlignmentRequest(Object type)
Method Detail

getAlignment

public int getAlignment()

getAlignmentRectangle

public org.eclipse.draw2d.geometry.Rectangle getAlignmentRectangle()

getTransformedRectangle

public org.eclipse.draw2d.geometry.Rectangle getTransformedRectangle(org.eclipse.draw2d.geometry.Rectangle rect)
Description copied from class: ChangeBoundsRequest
Returns a Rectangle representing the new bounds.

Overrides:
getTransformedRectangle in class ChangeBoundsRequest
Returns:
A Rectangle representing the new bounds.

setAlignment

public void setAlignment(int align)

setAlignmentRectangle

public void setAlignmentRectangle(org.eclipse.draw2d.geometry.Rectangle rect)

Eclipse GEF
2.1

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