|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.free.garminimg.export.MapExporter
public class MapExporter
Constructor Summary | |
---|---|
MapExporter(java.sql.Connection conn)
|
Method Summary | |
---|---|
void |
addPoint(int type,
int subType,
int longitude,
int latitude,
Label label,
boolean indexed)
Will be called for every points. |
void |
addPoly(int type,
int[] longitudes,
int[] latitudes,
int nbPoints,
Label label,
boolean line)
Will be called for every polygons/lines. |
void |
exportMaps(ImgFilesBag maps)
|
void |
finishPainting()
Called when everything is done. |
ImgFileBag |
getCurFile()
|
int |
getCurLevel()
|
void |
startMap(ImgFileBag file)
Called each time we start looking into another IMG file |
void |
startSubDivision(SubDivision subDivision)
Called each time we start parsing a displayed sub-division. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapExporter(java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void exportMaps(ImgFilesBag maps)
public void addPoint(int type, int subType, int longitude, int latitude, Label label, boolean indexed)
MapListener
addPoint
in interface MapListener
type
- Type of points (see ImgConstants.getPointDesc(int,int)
).subType
- Sub type.longitude
- The longitude in garmin coordinates.latitude
- The latitude in garmin coordinates.label
- The label attached to this point or null if there is none.indexed
- True if the point is indexed.public void addPoly(int type, int[] longitudes, int[] latitudes, int nbPoints, Label label, boolean line)
MapListener
addPoly
in interface MapListener
type
- Type of polyline/gone (see ImgConstants.getPolyDesc(int,boolean)
).longitudes
- The longitudes in garmin coordinates. Don't keep a pointer on it for more than the duration of this call.latitudes
- Same as latitudes, but for longitudes.nbPoints
- The number of points available.label
- The label attached to this poly or null if there is none.line
- True if it's a polyline, false if it's a polygon.public void startMap(ImgFileBag file)
MapListener
startMap
in interface MapListener
file
- The file.public void startSubDivision(SubDivision subDivision)
MapListener
startSubDivision
in interface MapListener
public void finishPainting()
MapListener
finishPainting
in interface MapListener
public ImgFileBag getCurFile()
public int getCurLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |