public interface INode extends IPrimitive, ILatLon
MAX_TAG_LENGTH
MAX_SERVER_PRECISION
Modifier and Type | Method and Description |
---|---|
default int |
compareTo(IPrimitive o) |
LatLon |
getCoor()
Returns lat/lon coordinates of this node.
|
default String |
getDisplayName(NameFormatter formatter)
Replies the display name of a primitive formatted by
formatter |
default EastNorth |
getEastNorth()
Replies the projected east/north coordinates.
|
default boolean |
isConnectionNode()
Check whether this node connects 2 ways.
|
boolean |
isReferredByWays(int n)
Return true, if this primitive is referred by at least n ways
|
void |
setCoor(LatLon coor)
Sets lat/lon coordinates of this node.
|
void |
setEastNorth(EastNorth eastNorth)
Sets east/north coordinates of this node.
|
accept, getBBox, getChangesetId, getChildren, getDataSet, getDisplayType, getId, getInstant, getInterestingTags, getLocalName, getName, getOsmId, getOsmPrimitiveId, getPrimitiveId, getRawTimestamp, getReferrers, getReferrers, getStyleCacheSyncObject, getTimestamp, getUser, getVersion, hasDirectionKeys, hasSameInterestingTags, isAnnotated, isDeleted, isDisabled, isDisabledAndHidden, isDrawable, isHighlighted, isIncomplete, isMemberOfSelected, isModified, isMultipolygon, isNewOrUndeleted, isOuterMemberOfSelected, isPreserved, isSelectable, isSelected, isTagged, isTimestampEmpty, isUndeleted, isUsable, isVisible, resetPrimitiveChildren, reversedDirection, setChangesetId, setDeleted, setHighlighted, setInstant, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible, visitReferrers
get, getKeys, getNumKeys, hasKey, hasKeys, hasTag, hasTag, hasTag, hasTag, hasTagDifferent, hasTagDifferent, hasTagDifferent, isKeyFalse, isKeyTrue, keys, keySet, ofMap, ofTags, put, put, putAll, remove, removeAll, setKeys, visitKeys
getType, getUniqueId, isNew
clearCachedStyle, declareCachedStyleUpToDate, getCachedStyle, isCachedStyleUpToDate, setCachedStyle
bearing, distanceSq, distanceSq, equalsEpsilon, equalsEpsilon, getEastNorth, greatCircleDistance, interpolate, isLatLonKnown, lat, lon
LatLon getCoor()
void setCoor(LatLon coor)
coor
- lat/lon coordinates of this nodedefault EastNorth getEastNorth()
Uses the global projection
to project the lat/lon-coordinates.
null
if ILatLon.isLatLonKnown()
is false.void setEastNorth(EastNorth eastNorth)
eastNorth
- east/north coordinates of this nodedefault boolean isConnectionNode()
isReferredByWays(int)
boolean isReferredByWays(int n)
n
- Minimal number of ways to return true. Must be positivetrue
if this primitive is referred by at least n waysdefault int compareTo(IPrimitive o)
compareTo
in interface Comparable<IPrimitive>
default String getDisplayName(NameFormatter formatter)
IPrimitive
formatter
getDisplayName
in interface IPrimitive
formatter
- formatter to use