public class NodeData extends PrimitiveData implements INode
AbstractPrimitive.KeyValueVisitor
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_TAGGED, FLAG_VISIBLE, flags, id, keys, timestamp, user, version
Constructor and Description |
---|
NodeData()
Constructs a new
NodeData . |
NodeData(NodeData data)
Constructs a new
NodeData . |
Modifier and Type | Method and Description |
---|---|
void |
accept(PrimitiveVisitor visitor)
Makes the given visitor visit this primitive.
|
LatLon |
getCoor()
Returns lat/lon coordinates of this node.
|
EastNorth |
getEastNorth()
Returns east/north coordinates of this node.
|
OsmPrimitiveType |
getType()
Gets the type of object represented by this object.
|
private boolean |
isLatLonKnown() |
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() |
getFilteredList, keysChangedImpl, setId, setIncomplete, setVersion
clearOsmMetadata, cloneFrom, generateUniqueId, get, getChangesetId, getDisplayType, getFlagsAsString, getId, getIgnoreCase, getKeys, getLocalName, getName, getNumKeys, getPrimitiveId, getRawTimestamp, getTimestamp, getUniqueId, getUser, getVersion, hasKey, hasKeys, hasTag, hasTag, hasTag, isDeleted, isIncomplete, isKeyFalse, isKeyTrue, isModified, isNew, isNewOrUndeleted, isTimestampEmpty, isUndeleted, isUsable, isVisible, keySet, put, remove, removeAll, setChangesetId, setDeleted, setKeys, setKeys, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible, updateFlags, visitKeys
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChangesetId, getId, getLocalName, getName, getPrimitiveId, getRawTimestamp, getTimestamp, getUser, getVersion, isDeleted, isIncomplete, isModified, isNewOrUndeleted, isTimestampEmpty, isUndeleted, isUsable, isVisible, setChangesetId, setDeleted, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible
get, getKeys, hasKeys, keySet, put, put, remove, removeAll, setKeys
getUniqueId, isNew
private static final long serialVersionUID
private double lat
private double lon
public NodeData()
NodeData
.private boolean isLatLonKnown()
public LatLon getCoor()
INode
public final void setCoor(LatLon coor)
INode
public EastNorth getEastNorth()
INode
getEastNorth
in interface INode
public void setEastNorth(EastNorth eastNorth)
INode
setEastNorth
in interface INode
eastNorth
- east/north coordinates of this nodepublic NodeData makeCopy()
PrimitiveData
makeCopy
in class PrimitiveData
public java.lang.String toString()
toString
in class PrimitiveData
public OsmPrimitiveType getType()
PrimitiveId
getType
in interface PrimitiveId
Node
,
Way
,
Relation
public void accept(PrimitiveVisitor visitor)
IPrimitive
accept
in interface IPrimitive
visitor
- visitor