org.openstreetmap.josm.data.osm
Class NodeData

java.lang.Object
  extended by org.openstreetmap.josm.data.osm.AbstractPrimitive
      extended by org.openstreetmap.josm.data.osm.PrimitiveData
          extended by 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
 
Constructor Summary
NodeData()
           
NodeData(NodeData data)
           
 
Method Summary
 LatLon getCoor()
           
 EastNorth getEastNorth()
           
 OsmPrimitiveType getType()
          Gets the type of object represented by this object.
private  boolean isLatLonKnown()
           
 NodeData makeCopy()
           
 void setCoor(LatLon coor)
           
 void setEastNorth(EastNorth eastNorth)
           
 java.lang.String toString()
           
 void visit(PrimitiveVisitor visitor)
           
 
Methods inherited from class org.openstreetmap.josm.data.osm.PrimitiveData
getFilteredList, keysChangedImpl, setId, setIncomplete, setVersion
 
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
 
Methods inherited from interface org.openstreetmap.josm.data.osm.Tagged
get, getKeys, hasKeys, keySet, put, remove, removeAll, setKeys
 
Methods inherited from interface org.openstreetmap.josm.data.osm.PrimitiveId
getUniqueId, isNew
 

Field Detail

lat

private double lat

lon

private double lon
Constructor Detail

NodeData

public NodeData()

NodeData

public NodeData(NodeData data)
Method Detail

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