|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.sketch.geom.SpatialRelation
This class lists the binary spatial relations that two objects may have
| Field Summary | |
static int |
ABOVE
| | | X | ___|___|___ | | | | ___|___|___ | | | | | | |
static int |
BELOW
| | | | ___|___|___ | | | | ___|___|___ | | | X | | | |
static int |
COCENTRIC
| | | | ___|___|___ | | | X | ___|___|___ | | | | | | |
static int |
LEFT
| | | | ___|___|___ | | X | | ___|___|___ | | | | | | |
static int |
LOWER_LEFT
| | | | ___|___|___ | | | | ___|___|___ | | X | | | | |
static int |
LOWER_RIGHT
| | | | ___|___|___ | | | | ___|___|___ | | | | X | | |
static int |
RIGHT
| | | | ___|___|___ | | | | X ___|___|___ | | | | | | |
static int |
UPPER_LEFT
| | X | | ___|___|___ | | | | ___|___|___ | | | | | | |
static int |
UPPER_RIGHT
| | | | X ___|___|___ | | | | ___|___|___ | | | | | | |
| Constructor Summary | |
SpatialRelation()
|
|
| Method Summary | |
static int |
cartesian2screen(int relation)
To String |
static int |
getComplement(int relation)
To String |
static int |
screen2cartesian(int relation)
To String |
static String |
toString(int relation)
To String |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UPPER_LEFT
| |
X | |
___|___|___
| |
| |
___|___|___
| |
| |
| |
public static final int ABOVE
| |
| X |
___|___|___
| |
| |
___|___|___
| |
| |
| |
public static final int UPPER_RIGHT
| |
| | X
___|___|___
| |
| |
___|___|___
| |
| |
| |
public static final int LEFT
| |
| |
___|___|___
| |
X | |
___|___|___
| |
| |
| |
public static final int COCENTRIC
| |
| |
___|___|___
| |
| X |
___|___|___
| |
| |
| |
public static final int RIGHT
| |
| |
___|___|___
| |
| | X
___|___|___
| |
| |
| |
public static final int LOWER_LEFT
| |
| |
___|___|___
| |
| |
___|___|___
| |
X | |
| |
public static final int BELOW
| |
| |
___|___|___
| |
| |
___|___|___
| |
| X |
| |
public static final int LOWER_RIGHT
| |
| |
___|___|___
| |
| |
___|___|___
| |
| | X
| |
| Constructor Detail |
public SpatialRelation()
| Method Detail |
public static String toString(int relation)
public static int cartesian2screen(int relation)
public static int screen2cartesian(int relation)
public static int getComplement(int relation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||