Interface INode

All Superinterfaces:
Comparable<IPrimitive>, ILatLon, IPrimitive, IQuadBucketType, PrimitiveId, Stylable, Tagged
All Known Implementing Classes:
Node, NodeData, VectorNode

public interface INode extends IPrimitive, ILatLon
INode captures the common functions of Node and NodeData.
Since:
4098
  • Method Details

    • getCoor

      Returns lat/lon coordinates of this node.
      Returns:
      lat/lon coordinates of this node
    • setCoor

      void setCoor(LatLon coor)
      Sets lat/lon coordinates of this node.
      Parameters:
      coor - lat/lon coordinates of this node
    • getEastNorth

      Replies the projected east/north coordinates.

      Uses the global projection to project the lat/lon-coordinates.

      Returns:
      the east north coordinates or null if ILatLon.isLatLonKnown() is false.
      Since:
      13666
    • setEastNorth

      void setEastNorth(EastNorth eastNorth)
      Sets east/north coordinates of this node.
      Parameters:
      eastNorth - east/north coordinates of this node
    • isConnectionNode

      default boolean isConnectionNode()
      Check whether this node connects 2 ways.
      Returns:
      true if isReferredByWays(2) returns true
      Since:
      13669
      See Also:
    • isReferredByWays

      boolean isReferredByWays(int n)
      Return true, if this primitive is referred by at least n ways
      Parameters:
      n - Minimal number of ways to return true. Must be positive
      Returns:
      true if this primitive is referred by at least n ways
      Since:
      13669
    • compareTo

      default int compareTo(IPrimitive o)
      Specified by:
      compareTo in interface Comparable<IPrimitive>
    • getDisplayName

      default String getDisplayName(NameFormatter formatter)
      Description copied from interface: IPrimitive
      Replies the display name of a primitive formatted by formatter
      Specified by:
      getDisplayName in interface IPrimitive
      Parameters:
      formatter - formatter to use
      Returns:
      the display name