public class NodeData extends PrimitiveData implements INode
| Modifier and Type | Field and Description |
|---|---|
private double |
lat |
private double |
lon |
private static long |
serialVersionUID |
changesetId, FLAG_ANNOTATED, FLAG_DELETED, FLAG_DIRECTION_REVERSED, FLAG_DISABLED, FLAG_DISABLED_TYPE, FLAG_HAS_DIRECTIONS, FLAG_HIDDEN_TYPE, FLAG_HIDE_IF_DISABLED, FLAG_HIGHLIGHTED, FLAG_INCOMPLETE, FLAG_MODIFIED, FLAG_PRESERVED, FLAG_TAGGED, FLAG_VISIBLE, flags, id, keys, timestamp, user, versionMAX_TAG_LENGTH| Constructor and Description |
|---|
NodeData()
Constructs a new
NodeData. |
NodeData(long id)
Constructs a new
NodeData with given id. |
NodeData(NodeData data)
Constructs a new
NodeData. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PrimitiveVisitor visitor)
Makes the given visitor visit this primitive.
|
BBox |
getBBox()
Fetches the bounding box of the primitive.
|
LatLon |
getCoor()
Returns lat/lon coordinates of this node.
|
OsmPrimitiveType |
getType()
Gets the type of object represented by this object.
|
boolean |
isLatLonKnown()
Determines if this object has valid coordinates.
|
boolean |
isReferredByWays(int n)
Return true, if this primitive is referred by at least n ways
|
double |
lat()
Returns the latitude, i.e., the north-south position in degrees.
|
double |
lon()
Returns the longitude, i.e., the east-west position in degrees.
|
NodeData |
makeCopy()
Returns a copy of this primitive data.
|
void |
setCoor(LatLon coor)
Sets lat/lon coordinates of this node.
|
void |
setEastNorth(EastNorth eastNorth)
Sets east/north coordinates of this node.
|
java.lang.String |
toString() |
declareCachedStyleUpToDate, getCachedStyle, getDataSet, getFilteredList, getReferrers, hasDirectionKeys, isAnnotated, isCachedStyleUpToDate, isHighlighted, isTagged, keysChangedImpl, reversedDirection, setCachedStyle, setHighlighted, setId, setIncomplete, setVersion, visitReferrersadvanceUniqueId, clearOsmMetadata, cloneFrom, currentUniqueId, doGet, generateUniqueId, get, getChangesetId, getDiscardableKeys, getFlagsAsString, getId, getIgnoreCase, getInterestingTags, getKeys, getNumKeys, getRawTimestamp, getTimestamp, getUninterestingKeys, getUniqueId, getUser, getVersion, getWorkInProgressKeys, hasKey, hasKey, hasKeys, isDeleted, isIncomplete, isModified, isNew, isNewOrUndeleted, isTimestampEmpty, isUndeleted, isUninterestingKey, isUsable, isVisible, keySet, put, remove, removeAll, setChangesetId, setDeleted, setKeys, setKeys, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible, updateFlags, visitKeysclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTo, getDisplayName, getEastNorth, isConnectionNodegetChangesetId, getDataSet, getDisplayType, getId, getInterestingTags, getLocalName, getName, getOsmId, getOsmPrimitiveId, getPrimitiveId, getRawTimestamp, getReferrers, getReferrers, 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, reversedDirection, setChangesetId, setDeleted, setHighlighted, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible, visitReferrersget, getKeys, getNumKeys, hasKey, hasKeys, hasTag, hasTag, hasTag, hasTag, hasTagDifferent, hasTagDifferent, hasTagDifferent, isKeyFalse, isKeyTrue, keySet, put, put, remove, removeAll, setKeys, visitKeysgetUniqueId, isNewclearCachedStyle, declareCachedStyleUpToDate, getCachedStyle, isCachedStyleUpToDate, setCachedStylegetEastNorthprivate static final long serialVersionUID
private double lat
private double lon
public NodeData()
NodeData.public NodeData(long id)
NodeData with given id.id - idpublic double lat()
ILatLonlat in interface ILatLonILatLon.isLatLonKnown() returns falsepublic double lon()
ILatLonlon in interface ILatLonILatLon.isLatLonKnown() returns falsepublic boolean isLatLonKnown()
ILatLonisLatLonKnown in interface ILatLontrue if this object has valid coordinatespublic LatLon getCoor()
INodepublic final void setCoor(LatLon coor)
INodepublic void setEastNorth(EastNorth eastNorth)
INodesetEastNorth in interface INodeeastNorth - east/north coordinates of this nodepublic NodeData makeCopy()
PrimitiveDatamakeCopy in class PrimitiveDatapublic java.lang.String toString()
toString in class PrimitiveDatapublic OsmPrimitiveType getType()
PrimitiveIdgetType in interface PrimitiveIdNode,
Way,
Relationpublic void accept(PrimitiveVisitor visitor)
IPrimitiveaccept in interface IPrimitivevisitor - visitorpublic BBox getBBox()
IPrimitivegetBBox in interface IPrimitivepublic boolean isReferredByWays(int n)
INodeisReferredByWays in interface INoden - Minimal number of ways to return true. Must be positivetrue if this primitive is referred by at least n ways