Class Position


  • public class Position
    extends java.lang.Object
    Indicates the position of a location relative to a node or edge component of a planar topological structure.
    Version:
    1.7
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int LEFT
      Specifies that a location is to the left of a component
      static int ON
      Specifies that a location is on a component
      static int RIGHT
      Specifies that a location is to the right of a component
    • Constructor Summary

      Constructors 
      Constructor Description
      Position()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int opposite​(int position)
      Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ON

        public static final int ON
        Specifies that a location is on a component
        See Also:
        Constant Field Values
      • LEFT

        public static final int LEFT
        Specifies that a location is to the left of a component
        See Also:
        Constant Field Values
      • RIGHT

        public static final int RIGHT
        Specifies that a location is to the right of a component
        See Also:
        Constant Field Values
    • Constructor Detail

      • Position

        public Position()
    • Method Detail

      • opposite

        public static final int opposite​(int position)
        Returns LEFT if the position is RIGHT, RIGHT if the position is LEFT, or the position otherwise.