|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.SnapToHelper
org.eclipse.gef.CompoundSnapToHelper
public class CompoundSnapToHelper
Combines multiple SnapToHelpers into one compound helper. The compound helper deletages to multiple other helpers.
Field Summary |
---|
Fields inherited from interface org.eclipse.draw2d.PositionConstants |
---|
ALWAYS_LEFT, ALWAYS_RIGHT, BOTTOM, CENTER, EAST, EAST_WEST, HORIZONTAL, LEFT, LEFT_CENTER_RIGHT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, NSEW, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TOP_MIDDLE_BOTTOM, VERTICAL, WEST |
Constructor Summary | |
---|---|
CompoundSnapToHelper(SnapToHelper[] delegates)
Constructs a compound snap to helper which will delegate to the provided array of helpers. |
Method Summary | |
---|---|
protected SnapToHelper[] |
getDelegates()
Gets the array of helpers. |
int |
snapRectangle(Request request,
int snapOrientation,
PrecisionRectangle baseRect,
PrecisionRectangle result)
Applies a snap correction to a Rectangle based on a given Rectangle. |
Methods inherited from class org.eclipse.gef.SnapToHelper |
---|
makeAbsolute, makeRelative, snapPoint, snapPoint, snapRectangle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompoundSnapToHelper(SnapToHelper[] delegates)
delegates
- an array of helpersMethod Detail |
---|
protected SnapToHelper[] getDelegates()
public int snapRectangle(Request request, int snapOrientation, PrecisionRectangle baseRect, PrecisionRectangle result)
SnapToHelper
The baseRect is not modified. The correction is applied to the result.
The request's extended data
may contain
additional information about the snapping which was performed.
All coordinate information received and returned by this method should be in absolute coordinates.
snapRectangle
in class SnapToHelper
request
- the request or null
snapOrientation
- the input snap locationsbaseRect
- the input rectangleresult
- the correction is applied to this rectangle
SnapToHelper.snapRectangle(Request, int, PrecisionRectangle,
PrecisionRectangle)
|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |