uk.me.parabola.imgfmt.app.trergn
Class Point

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.trergn.MapObject
      extended by uk.me.parabola.imgfmt.app.trergn.Point

public class Point
extends MapObject

Represents a particular point object on a map. A point has a type (town restaurant etc) and a location as well as a name. A point belongs to a particular subdivision and cannot be interpreted without it as all details are relative to the subdivision.

Author:
Steve Ratcliffe

Constructor Summary
Point(Subdivision div)
           
 
Method Summary
 POIRecord getPOIRecord()
           
 void setPOIRecord(POIRecord poirecord)
           
 void write(ImgFileWriter file)
          Format and write the contents of the object to the given file.
 void write(java.io.OutputStream stream)
           
 
Methods inherited from class uk.me.parabola.imgfmt.app.trergn.MapObject
addRefLabel, getDeltaLong, getExtTypeExtraBytes, getLabel, getNumber, getRefLabels, getSubdiv, getType, hasExtendedType, hasExtendedType, setDeltaLat, setDeltaLong, setExtTypeAttributes, setLabel, setLatitude, setLongitude, setNumber, setSubdiv, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(Subdivision div)
Method Detail

write

public void write(ImgFileWriter file)
Format and write the contents of the object to the given file.

Specified by:
write in class MapObject
Parameters:
file - A reference to the file that should be written to.

write

public void write(java.io.OutputStream stream)
           throws java.io.IOException
Specified by:
write in class MapObject
Throws:
java.io.IOException

setPOIRecord

public void setPOIRecord(POIRecord poirecord)

getPOIRecord

public POIRecord getPOIRecord()