com.micello.mapapi.data
Interface DrawingChangedListener

All Known Implementing Classes:
ErrorMonitor, InfoHelper, MapViewRegion

public interface DrawingChangedListener

This interface is used to get a callback from the MapData object when the status of a drawing changes.


Field Summary
static int DRAWING_ACTIVE
          This value indicates the drawing was made active.
static int ENTITIES_LOADED
          This value indicates the entities associated with this drawing were loaded.
static int LEVELS_LOADED
          This value indicates the levels associated with this drawing were laoded.
static int MAP_LOADED
          This value indicates the map associated with this drawing was loaded.
 
Method Summary
 void onDrawingChanged(Drawing drawing, int flags)
          This method is called when the drawing is loaded and/or set active.
 void onDrawingError(int did, int error, int flags)
          This method is called when there is an error loading a drawing.
 

Field Detail

DRAWING_ACTIVE

static final int DRAWING_ACTIVE
This value indicates the drawing was made active.

See Also:
Constant Field Values

MAP_LOADED

static final int MAP_LOADED
This value indicates the map associated with this drawing was loaded.

See Also:
Constant Field Values

ENTITIES_LOADED

static final int ENTITIES_LOADED
This value indicates the entities associated with this drawing were loaded.

See Also:
Constant Field Values

LEVELS_LOADED

static final int LEVELS_LOADED
This value indicates the levels associated with this drawing were laoded.

See Also:
Constant Field Values
Method Detail

onDrawingChanged

void onDrawingChanged(Drawing drawing,
                      int flags)
This method is called when the drawing is loaded and/or set active.

Parameters:
drawing - The drawing object
flags - flags indicating the event

onDrawingError

void onDrawingError(int did,
                    int error,
                    int flags)
This method is called when there is an error loading a drawing.

Parameters:
did - The drawing id
error - An error code
flags - flags indicating the event