/** 
  * 
  * See the end of the file for the log of changes.
  * 
  * $Author: mtsezgin $
  * $Date: 2000/06/03 01:52:31 $   
  * $Revision: 1.2 $
  * $Headers$
  * $Id: Direction.java,v 1.2 2000/06/03 01:52:31 mtsezgin Exp $     
  * $Name:  $   
  * $Locker:  $
  * $Source: /mit/mtsezgin/CVS/Repository/REC/Direction.java,v $
  *  
  **/


/**
  *
  * This class lists the direction of an object's bounding box may
  * have.
  *
  **/

class Direction
{
    /**
    *             
    *             |   |
    *             |   |
    *          ___|___|___
    *             |   |
    *          XX | X | XX
    *          ___|___|___
    *             |   |
    *             |   |
    *             |   |
    *
    **/
    public static final int LEFT_RIGHT  = 0;

    /**
    *             
    *             | X |
    *             | X |
    *          ___|___|___
    *             |   |
    *             | X |   
    *          ___|___|___
    *             |   |
    *             | X |
    *             | X |
    *
    **/
    public static final int ABOVE_BELOW = 1;
    
    /**
    *             
    *             |   |
    *             |   |
    *          ___|___|___
    *             |   |
    *             |   |
    *          ___|___|___
    *             |   |
    *             |   | X
    *             |   |
    *
    **/
    public static String
    toString( int relation )
    {
        switch ( relation )
        {

            case LEFT_RIGHT  : return "left_right";
            case ABOVE_BELOW : return "above_below";
            default             : return "unknown relation";
        }
    }
}


/** 
  * 
  * $Log: Direction.java,v $
  * Revision 1.2  2000/06/03 01:52:31  mtsezgin
  * *** empty log message ***
  *
  * Revision 1.1  2000/04/20 03:59:52  mtsezgin
  * *** empty log message ***
  *
  * Revision 1.2  2000/04/12 04:00:16  mtsezgin
  * *** empty log message ***
  *
  * Revision 1.1  2000/04/06 21:33:43  mtsezgin
  *
  * Spatial relation represents 9 basic relations for now. It should be extended.
  *
  * GeometricObject is extended. Implementors extended with empty stubs.
  *
  * Revision 1.3  2000/04/06 19:16:24  mtsezgin
  *
  * Modified all the classes to use my Point class which extends java.awt.Point
  * instead of directly using java.awt.Point
  *
  * Revision 1.2  2000/04/01 22:51:22  mtsezgin
  *
  * Started implementation. Also from now on using jdk 1.2
  *
  * Revision 1.1.1.1  2000/04/01 03:07:07  mtsezgin
  * Imported sources
  *
  * Revision 1.5  2000/03/31 22:41:04  mtsezgin
  *
  * Started Log tracking.
  *
  *  
  **/
