org.eclipse.gef
Class CompoundSnapToHelper
java.lang.Object
org.eclipse.gef.SnapToHelper
org.eclipse.gef.CompoundSnapToHelper
- public class CompoundSnapToHelper
- extends SnapToHelper
Combines multiple SnapToHelpers into one compound helper. The compound helper
deletages to multiple other helpers.
|
Method Summary |
int |
snapRectangle(Request request,
int snapOrientation,
PrecisionRectangle baseRect,
PrecisionRectangle result)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompoundSnapToHelper
public CompoundSnapToHelper(SnapToHelper[] delegates)
- Constructs a compound snap to helper which will delegate to the provided array of
helpers. The first helper in the array has highest priority and will be given the
first opportunity to perform snapping.
- Parameters:
delegates - an array of helpers- Since:
- 3.0
snapRectangle
public int snapRectangle(Request request,
int snapOrientation,
PrecisionRectangle baseRect,
PrecisionRectangle result)
- Overrides:
snapRectangle in class SnapToHelper
- Parameters:
request - the request or nullbaseRect - the prioritized rectangles to snap toresult - the outputsnapOrientation - the input snap locations
- Returns:
- the remaining snap locations
- See Also:
SnapToHelper#snapRectangle(Request, int, PrecisionRectangle, PrecisionRectangle)
Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.