/*
* (C) 2004 - Geotechnical Software Services
*
* This code is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
package no.geosoft.cc.graphics;
/**
* Collection of position hints. A position hint is an or'ed
* collection of a line position hint, a point position hint
* and a position algorithm.
* <p>
* Example position interpretation where the segment endpoints are
* represented by an "o" and the position is represented by an "X".:
*
* <pre>
*
* X (GPosition.TOP | GPosition.NORTH)
* o
* \
* \
* \
* \
* o X (GPosition.BOTTOM | GPosition.EAST)
* X (Gposition.RIGHT | GPosition.SOUTHWEST)
* </pre>
*
* @author <a href="mailto:info@geosoft.no">GeoSoft</a>
*/
public interface GPosition
{
//
// Line position hints
//
public static final int FIRST = 1 << 1;
public static final int LAST = 1 << 2;
public static final int TOP = 1 << 3;
public static final int BOTTOM = 1 << 4;
public static final int LEFT = 1 << 5;
public static final int RIGHT = 1 << 6;
public static final int MIDDLE = 1 << 7;
//
// Point position hints
//
public static final int CENTER = 1 << 8;
public static final int NORTHWEST = 1 << 9;
public static final int NORTH = 1 << 10;
public static final int NORTHEAST = 1 << 11;
public static final int WEST = 1 << 12;
public static final int EAST = 1 << 13;
public static final int SOUTHWEST = 1 << 14;
public static final int SOUTH = 1 << 15;
public static final int SOUTHEAST = 1 << 16;
//
// Positioning algorithm
//
public static final int DYNAMIC = 1 << 17;
public static final int STATIC = 1 << 18;
}