Package org.eclipse.gef
Class SnapToGeometry.Entry
- java.lang.Object
-
- org.eclipse.gef.SnapToGeometry.Entry
-
- Enclosing class:
- SnapToGeometry
protected static class SnapToGeometry.Entry extends java.lang.Object
A vertical or horizontal snapping point. since 3.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Entry(int type, int location)
Constructs a new entry of the given type and location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLocation()
Returns the location of the snap entry.int
getType()
Returns the snap type.
-
-
-
Method Detail
-
getLocation
public int getLocation()
Returns the location of the snap entry.- Returns:
- the location
- Since:
- 3.2
-
getType
public int getType()
Returns the snap type. The following values may be returned.- -1 indicates left/top
- 0 indicates middle/center
- 1 indicates right/bottom
- Returns:
- the snap type
- Since:
- 3.2
-
-