public class AlignmentRequest extends ChangeBoundsRequest
Constructor and Description |
---|
AlignmentRequest()
Default constructor.
|
AlignmentRequest(java.lang.Object type)
Constructs a new AlignmentRequest with the new type.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getLocation, getMouseLocation, getMoveDelta, getResizeDirection, getSizeDelta, isCenteredResize, isConstrainedMove, isConstrainedResize, isSnapToEnabled, setCenteredResize, setConstrainedMove, setConstrainedResize, setLocation, setMouseLocation, setMoveDelta, setResizeDirection, setSizeDelta, setSnapToEnabled
getEditParts, setEditParts, setEditParts
getExtendedData, getType, setExtendedData, setType
public AlignmentRequest()
public AlignmentRequest(java.lang.Object type)
type
- the typepublic int getAlignment()
PositionConstants.LEFT
, PositionConstants.RIGHT
, PositionConstants.TOP
and
PositionConstants.BOTTOM
.public Rectangle getAlignmentRectangle()
public Rectangle getTransformedRectangle(Rectangle rect)
ChangeBoundsRequest
getTransformedRectangle
in class ChangeBoundsRequest
rect
- the rectangle to transformChangeBoundsRequest.getTransformedRectangle(Rectangle)
public void setAlignment(int align)
align
- the alignmentgetAlignment()
public void setAlignmentRectangle(Rectangle rect)
rect
- the alignment rectanglegetAlignmentRectangle()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.