org.openstreetmap.josm.data.osm
Class NodeData
java.lang.Object
org.openstreetmap.josm.data.osm.AbstractPrimitive
org.openstreetmap.josm.data.osm.PrimitiveData
org.openstreetmap.josm.data.osm.NodeData
- All Implemented Interfaces:
- INode, IPrimitive, PrimitiveId, Tagged
public class NodeData
- extends PrimitiveData
- implements INode
Field Summary |
private double |
lat
|
private double |
lon
|
Fields inherited from class org.openstreetmap.josm.data.osm.AbstractPrimitive |
changesetId, FLAG_DELETED, FLAG_INCOMPLETE, FLAG_MODIFIED, FLAG_VISIBLE, flags, id, keys, timestamp, user, version |
Methods inherited from class org.openstreetmap.josm.data.osm.AbstractPrimitive |
clearOsmId, cloneFrom, generateUniqueId, get, getChangesetId, getDisplayType, getFlagsAsString, getId, getIgnoreCase, getKeys, getLocalName, getName, getPrimitiveId, getTimestamp, getUniqueId, getUser, getVersion, hasKey, hasKeys, hasSameTags, hasTag, hasTag, isDeleted, isIncomplete, isModified, isNew, isNewOrUndeleted, isTimestampEmpty, isUndeleted, isUsable, isVisible, keySet, put, remove, removeAll, setChangesetId, setDeleted, setKeys, setModified, setOsmId, setTimestamp, setUser, setVisible, updateFlags |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openstreetmap.josm.data.osm.IPrimitive |
getChangesetId, getId, getLocalName, getName, getPrimitiveId, getTimestamp, getUser, getVersion, isDeleted, isIncomplete, isModified, isNewOrUndeleted, isTimestampEmpty, isVisible, setChangesetId, setDeleted, setModified, setOsmId, setTimestamp, setUser, setVisible |
lat
private double lat
lon
private double lon
NodeData
public NodeData()
NodeData
public NodeData(NodeData data)
isLatLonKnown
private boolean isLatLonKnown()
getCoor
public LatLon getCoor()
- Specified by:
getCoor
in interface INode
setCoor
public void setCoor(LatLon coor)
- Specified by:
setCoor
in interface INode
getEastNorth
public EastNorth getEastNorth()
- Specified by:
getEastNorth
in interface INode
setEastNorth
public void setEastNorth(EastNorth eastNorth)
- Specified by:
setEastNorth
in interface INode
makeCopy
public NodeData makeCopy()
- Specified by:
makeCopy
in class PrimitiveData
toString
public java.lang.String toString()
- Overrides:
toString
in class PrimitiveData
getType
public OsmPrimitiveType getType()
- Description copied from interface:
PrimitiveId
- Gets the type of object represented by this object.
- Specified by:
getType
in interface PrimitiveId
- Specified by:
getType
in class PrimitiveData
- Returns:
- the object type
- See Also:
Node
,
Way
,
Relation
visit
public void visit(PrimitiveVisitor visitor)
- Specified by:
visit
in interface IPrimitive
JOSM