Package org.openstreetmap.josm.data.osm
Interface INode
-
- All Superinterfaces:
java.lang.Comparable<IPrimitive>
,ILatLon
,IPrimitive
,IQuadBucketType
,PrimitiveId
,Stylable
,Tagged
- All Known Implementing Classes:
Node
,NodeData
,VectorNode
public interface INode extends IPrimitive, ILatLon
- Since:
- 4098
-
-
Field Summary
-
Fields inherited from interface org.openstreetmap.josm.data.coor.ILatLon
MAX_SERVER_PRECISION
-
Fields inherited from interface org.openstreetmap.josm.data.osm.Tagged
MAX_TAG_LENGTH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
compareTo(IPrimitive o)
LatLon
getCoor()
Returns lat/lon coordinates of this node.default java.lang.String
getDisplayName(NameFormatter formatter)
Replies the display name of a primitive formatted byformatter
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 waysvoid
setCoor(LatLon coor)
Sets lat/lon coordinates of this node.void
setEastNorth(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, lon
-
Methods 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, getTimestamp, 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, setTimestamp, setUser, setVisible, visitReferrers
-
Methods inherited from interface org.openstreetmap.josm.data.osm.PrimitiveId
getType, getUniqueId, isNew
-
Methods inherited from interface org.openstreetmap.josm.data.osm.Stylable
clearCachedStyle, declareCachedStyleUpToDate, getCachedStyle, isCachedStyleUpToDate, setCachedStyle
-
Methods 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 Detail
-
getCoor
LatLon 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
default EastNorth getEastNorth()
Replies the projected east/north coordinates.Uses the
global projection
to project the lat/lon-coordinates.- Returns:
- the east north coordinates or
null
ifILatLon.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(int)
-
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 interfacejava.lang.Comparable<IPrimitive>
-
getDisplayName
default java.lang.String getDisplayName(NameFormatter formatter)
Description copied from interface:IPrimitive
Replies the display name of a primitive formatted byformatter
- Specified by:
getDisplayName
in interfaceIPrimitive
- Parameters:
formatter
- formatter to use- Returns:
- the display name
-
-