edu.mit.sketch.geom
Class SpatialRelation

java.lang.Object
  extended by edu.mit.sketch.geom.SpatialRelation

public class SpatialRelation
extends java.lang.Object

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 java.lang.String toString(int relation)
          To String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPPER_LEFT

public static final int UPPER_LEFT
             
             |   |
           X |   |
          ___|___|___
             |   |
             |   |
          ___|___|___
             |   |
             |   |
             |   |
 

See Also:
Constant Field Values

ABOVE

public static final int ABOVE
             
             |   |
             | X |
          ___|___|___
             |   |
             |   |
          ___|___|___
             |   |
             |   |
             |   |
 

See Also:
Constant Field Values

UPPER_RIGHT

public static final int UPPER_RIGHT
             |   |
             |   | X
          ___|___|___
             |   |
             |   |
          ___|___|___
             |   |
             |   |
             |   |
 

See Also:
Constant Field Values

LEFT

public static final int LEFT
             |   |
             |   | 
          ___|___|___
             |   |
           X |   |
          ___|___|___
             |   |
             |   |
             |   |
 

See Also:
Constant Field Values

COCENTRIC

public static final int COCENTRIC
             |   |
             |   | 
          ___|___|___
             |   |
             | X |
          ___|___|___
             |   |
             |   |
             |   |
 

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
             |   |
             |   | 
          ___|___|___
             |   |
             |   | X
          ___|___|___
             |   |
             |   |
             |   |
 

See Also:
Constant Field Values

LOWER_LEFT

public static final int LOWER_LEFT
             |   |
             |   |
          ___|___|___
             |   |
             |   |
          ___|___|___
             |   |
           X |   |
             |   |
 

See Also:
Constant Field Values

BELOW

public static final int BELOW
             |   |
             |   |
          ___|___|___
             |   |
             |   |
          ___|___|___
             |   |
             | X |
             |   |
 

See Also:
Constant Field Values

LOWER_RIGHT

public static final int LOWER_RIGHT
             
             |   |
             |   |
          ___|___|___
             |   |
             |   |
          ___|___|___
             |   |
             |   | X
             |   |
 

See Also:
Constant Field Values
Constructor Detail

SpatialRelation

public SpatialRelation()
Method Detail

toString

public static java.lang.String toString(int relation)
To String


cartesian2screen

public static int cartesian2screen(int relation)
To String


screen2cartesian

public static int screen2cartesian(int relation)
To String


getComplement

public static int getComplement(int relation)
To String