Class Position

java.lang.Object
org.locationtech.jts.geomgraph.Position

public class Position extends Object
A Position indicates the position of a Location relative to a graph component (Node, Edge, or Area).
Version:
1.7
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    An indicator that a Location is to the left of a GraphComponent
    static final int
    An indicator that a Location is on a GraphComponent
    static final int
    An indicator that a Location is to the right of a GraphComponent
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final 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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ON

      public static final int ON
      An indicator that a Location is on a GraphComponent
      See Also:
    • LEFT

      public static final int LEFT
      An indicator that a Location is to the left of a GraphComponent
      See Also:
  • Constructor Details

    • Position

      public Position()
  • Method Details

    • 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.