org.free.garminimg.utils
Interface TransformedMapListener

All Known Implementing Classes:
ClippingMapListener, DualTransformedMapListener, MapDrawer, PolyLabelReducerListener, ReliefDrawer, StatsListener

public interface TransformedMapListener

A map visitor with coordinates already projected (expressed in pixels).

See Also:
MapListener

Method Summary
 void addPoint(int type, int subType, int x, int y, Label label, boolean indexed)
          Will be called for every points.
 void addPoly(int type, int[] xPoints, int[] yPoints, int nbPoints, Label label, boolean line)
          Will be called for every polygons/lines.
 void finishPainting()
          Called when everything is done.
 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.
 

Method Detail

addPoint

void addPoint(int type,
              int subType,
              int x,
              int y,
              Label label,
              boolean indexed)
Will be called for every points.

Parameters:
type - Type of points (see ImgConstants.getPointDesc(int,int)).
subType - Sub type.
x - The X coordinate in pixels.
y - The Y coordinate in pixels.
label - The label attached to this point or null if there is none.
indexed - True if the point is indexed.

addPoly

void addPoly(int type,
             int[] xPoints,
             int[] yPoints,
             int nbPoints,
             Label label,
             boolean line)
Will be called for every polygons/lines.

Parameters:
type - Type of polyline/gone (see ImgConstants.getPolyDesc(int,boolean)).
xPoints - The X coordinates in pixels. Don't keep a pointer on it for more than the duration of this call.
yPoints - Same as xPoints, but for y coordinates.
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.

startMap

void startMap(ImgFileBag file)
Called each time we start looking into another IMG file

Parameters:
file - The file.

startSubDivision

void startSubDivision(SubDivision subDivision)
Called each time we start parsing a displayed sub-division.

Parameters:
subDivision -

finishPainting

void finishPainting()
Called when everything is done.



Copyright © 2008. All Rights Reserved.