Package 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
A request to align multiple objects.
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.AlignmentRequest(Object type) Constructs a new AlignmentRequest with the new type.
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the alignment.Returns the rectangle used to align the edit part with.Transforms a copy of the passed in rectangle to account for the move and/or resize deltas and returns this copy.voidsetAlignment(int align) Sets the alignment.voidSets the alignment rectangle.Methods inherited from class org.eclipse.gef.requests.ChangeBoundsRequestgetLocation, getMouseLocation, getMoveDelta, getResizeDirection, getSizeDelta, isCenteredResize, isConstrainedMove, isConstrainedResize, isSnapToEnabled, setCenteredResize, setConstrainedMove, setConstrainedResize, setLocation, setMouseLocation, setMoveDelta, setResizeDirection, setSizeDelta, setSnapToEnabledMethods inherited from class org.eclipse.gef.requests.GroupRequestgetEditParts, setEditParts, setEditPartsMethods inherited from class org.eclipse.gef.RequestgetExtendedData, getType, setExtendedData, setType
- 
Constructor Details- 
AlignmentRequestpublic AlignmentRequest()Default constructor.
- 
AlignmentRequestConstructs a new AlignmentRequest with the new type.- Parameters:
- type- the type
 
 
- 
- 
Method Details- 
getAlignmentpublic int getAlignment()Returns the alignment. Possible values arePositionConstants.LEFT,PositionConstants.RIGHT,PositionConstants.TOPandPositionConstants.BOTTOM.- Returns:
- the alignment
 
- 
getAlignmentRectangleReturns the rectangle used to align the edit part with.- Returns:
- the alignment rectangle
 
- 
getTransformedRectangleDescription copied from class:ChangeBoundsRequestTransforms a copy of the passed in rectangle to account for the move and/or resize deltas and returns this copy.- Overrides:
- getTransformedRectanglein class- ChangeBoundsRequest
- Parameters:
- rect- the rectangle to transform
- Returns:
- a copy of the passed in rectangle representing the new bounds
- See Also:
 
- 
setAlignmentpublic void setAlignment(int align) Sets the alignment.- Parameters:
- align- the alignment
- See Also:
 
- 
setAlignmentRectangleSets the alignment rectangle.- Parameters:
- rect- the alignment rectangle
- See Also:
 
 
-