Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.requests
Class AlignmentRequest

java.lang.Object
  extended by

org.eclipse.gef.Request
      extended by

org.eclipse.gef.requests.GroupRequest
          extended by

org.eclipse.gef.requests.ChangeBoundsRequest
              extended by
org.eclipse.gef.requests.AlignmentRequest
All Implemented Interfaces:
DropRequest

public class AlignmentRequest
extends ChangeBoundsRequest

A request to align multiple objects.


Constructor Summary
AlignmentRequest ()
          Default constructor.
AlignmentRequest (java.lang.Object type)
          Constructs a new AlignmentRequest with the new type.
 
Method Summary
 int getAlignment ()
          Returns the alignment.
  Rectangle getAlignmentRectangle ()
          Returns the rectangle used to align the edit part with.
  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 setAlignment (int align)
          Sets the alignment.
 void setAlignmentRectangle ( Rectangle rect)
          Sets the alignment rectangle.
 
Methods inherited from class org.eclipse.gef.requests. ChangeBoundsRequest
getLocation, getMouseLocation, getMoveDelta, getResizeDirection, getSizeDelta, isCenteredResize, isConstrainedMove, isConstrainedResize, setCenteredResize, setConstrainedMove, setConstrainedResize, 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
getExtendedData, getType, setExtendedData, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignmentRequest

public AlignmentRequest()
Default constructor.


AlignmentRequest

public AlignmentRequest(java.lang.Object type)
Constructs a new AlignmentRequest with the new type.

Parameters:
type - the type
Method Detail

getAlignment

public int getAlignment()
Returns the alignment. Possible values are PositionConstants.LEFT, PositionConstants.RIGHT, PositionConstants.TOP and PositionConstants.BOTTOM.

Returns:
the alignment

getAlignmentRectangle

public 
Rectangle getAlignmentRectangle()
Returns the rectangle used to align the edit part with.

Returns:
the alignment rectangle

getTransformedRectangle

public 
Rectangle getTransformedRectangle(
Rectangle rect)
Description copied from class: ChangeBoundsRequest
Transforms a copy of the passed in rectangle to account for the move and/or resize deltas and returns this copy.

Overrides:
getTransformedRectangle in class ChangeBoundsRequest
Parameters:
rect - the rectangle to transform
Returns:
a copy of the passed in rectangle representing the new bounds
See Also:
ChangeBoundsRequest.getTransformedRectangle(Rectangle)

setAlignment

public void setAlignment(int align)
Sets the alignment.

Parameters:
align - the alignment
See Also:
getAlignment()

setAlignmentRectangle

public void setAlignmentRectangle(
Rectangle rect)
Sets the alignment rectangle.

Parameters:
rect - the alignment rectangle
See Also:
getAlignmentRectangle()

Eclipse GEF
3.3

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire