|
GEF (MVC) 3.9.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.Request
org.eclipse.gef.requests.GroupRequest
org.eclipse.gef.requests.ChangeBoundsRequest
org.eclipse.gef.requests.AlignmentRequest
public class AlignmentRequest
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, isSnapToEnabled, setCenteredResize, setConstrainedMove, setConstrainedResize, setLocation, setMouseLocation, setMoveDelta, setResizeDirection, setSizeDelta, setSnapToEnabled |
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 |
---|
public AlignmentRequest()
public AlignmentRequest(java.lang.Object type)
type
- the typeMethod Detail |
---|
public 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 transform
ChangeBoundsRequest.getTransformedRectangle(Rectangle)
public void setAlignment(int align)
align
- the alignmentgetAlignment()
public void setAlignmentRectangle(Rectangle rect)
rect
- the alignment rectanglegetAlignmentRectangle()
|
GEF (MVC) 3.9.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |