Package org.openstreetmap.josm.data.osm
Interface INode
- All Superinterfaces:
Comparable<IPrimitive>,ILatLon,IPrimitive,IQuadBucketType,PrimitiveId,Stylable,Tagged
- All Known Implementing Classes:
Node,NodeData,VectorNode
- Since:
- 4098
-
Field Summary
Fields inherited from interface org.openstreetmap.josm.data.coor.ILatLon
MAX_SERVER_PRECISIONFields inherited from interface org.openstreetmap.josm.data.osm.Tagged
MAX_TAG_LENGTH -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetCoor()Returns lat/lon coordinates of this node.default StringgetDisplayName(NameFormatter formatter) Replies the display name of a primitive formatted byformatterdefault EastNorthReplies the projected east/north coordinates.default booleanCheck whether this node connects 2 ways.booleanisReferredByWays(int n) Return true, if this primitive is referred by at least n waysvoidSets lat/lon coordinates of this node.voidsetEastNorth(EastNorth eastNorth) Sets east/north coordinates of this node.Methods inherited from interface org.openstreetmap.josm.data.coor.ILatLon
bearing, distanceSq, distanceSq, equalsEpsilon, equalsEpsilon, getEastNorth, greatCircleDistance, interpolate, isLatLonKnown, lat, lonMethods inherited from interface org.openstreetmap.josm.data.osm.IPrimitive
accept, getBBox, getChangesetId, getChildren, getDataSet, getDisplayType, getId, getInstant, getInterestingTags, getLocalName, getName, getOsmId, getOsmPrimitiveId, getPrimitiveId, getRawTimestamp, getReferrers, getReferrers, getStyleCacheSyncObject, getUser, getVersion, hasDirectionKeys, hasSameInterestingTags, isAnnotated, isDeleted, isDisabled, isDisabledAndHidden, isDrawable, isHighlighted, isIncomplete, isMemberOfSelected, isModified, isMultipolygon, isNewOrUndeleted, isOuterMemberOfSelected, isPreserved, isReferrersDownloaded, isSelectable, isSelected, isTagged, isTimestampEmpty, isUndeleted, isUsable, isVisible, reversedDirection, setChangesetId, setDeleted, setHighlighted, setInstant, setModified, setOsmId, setRawTimestamp, setReferrersDownloaded, setUser, setVisible, visitReferrersMethods inherited from interface org.openstreetmap.josm.data.osm.PrimitiveId
getType, getUniqueId, isNewMethods inherited from interface org.openstreetmap.josm.data.osm.Stylable
clearCachedStyle, declareCachedStyleUpToDate, getCachedStyle, isCachedStyleUpToDate, setCachedStyleMethods inherited from interface org.openstreetmap.josm.data.osm.Tagged
get, getKeys, getNumKeys, hasKey, hasKeys, hasTag, hasTag, hasTag, hasTag, hasTagDifferent, hasTagDifferent, hasTagDifferent, isKeyFalse, isKeyTrue, keys, keySet, put, put, putAll, remove, removeAll, setKeys, visitKeys
-
Method Details
-
getCoor
Returns lat/lon coordinates of this node.- Returns:
- lat/lon coordinates of this node
-
setCoor
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 projectionto project the lat/lon-coordinates.- Returns:
- the east north coordinates or
nullifILatLon.isLatLonKnown()is false. - Since:
- 13666
-
setEastNorth
Sets east/north coordinates of this node.- Parameters:
eastNorth- east/north coordinates of this node
-
isConnectionNode
Check whether this node connects 2 ways.- Returns:
- true if isReferredByWays(2) returns true
- Since:
- 13669
- See Also:
-
isReferredByWays
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:
trueif this primitive is referred by at least n ways- Since:
- 13669
-
compareTo
- Specified by:
compareToin interfaceComparable<IPrimitive>
-
getDisplayName
Description copied from interface:IPrimitiveReplies the display name of a primitive formatted byformatter- Specified by:
getDisplayNamein interfaceIPrimitive- Parameters:
formatter- formatter to use- Returns:
- the display name
-