Package globus.glmap
Interface GLMapImageGroupCallback
-
public interface GLMapImageGroupCallbackGLMapImageGroupCallbacktells image group about it's contents.
-
-
Method Summary
Modifier and Type Method Description intgetImageIndex(int i)Return variant of image to useMapPointgetImagePos(int i)Return location of image on mapintgetImagesCount()Return total number of images that will be displayed by image groupandroid.graphics.BitmapgetImageVariantBitmap(int i)Return bitmap to use for given variant of imageMapPointgetImageVariantOffset(int i)Return offset to use for given variant of imageintgetImageVariantsCount()Return number of unique images which will be used by image groupvoidupdateFinished()Call when update finished.voidupdateStarted()Call when update started.
-
-
-
Method Detail
-
getImageVariantsCount
int getImageVariantsCount()
Return number of unique images which will be used by image group- Returns:
- number of unique images
-
getImageVariantBitmap
android.graphics.Bitmap getImageVariantBitmap(int i)
Return bitmap to use for given variant of image- Parameters:
i- index of image variant (0 .. variantsCount-1)- Returns:
- bitmap to use for given variant of image
-
getImageVariantOffset
MapPoint getImageVariantOffset(int i)
Return offset to use for given variant of image- Parameters:
i- index of image variant (0 .. variantsCount-1)- Returns:
- offset for bitmap in pixels
-
getImagesCount
int getImagesCount()
Return total number of images that will be displayed by image group- Returns:
- number of images
-
getImageIndex
int getImageIndex(int i)
Return variant of image to use- Parameters:
i- index of image (0 .. imagesCount-1)- Returns:
- index of image variant to use (0 .. variantsCount-1)
-
getImagePos
MapPoint getImagePos(int i)
Return location of image on map- Parameters:
i- index of image (0 .. imagesCount-1)- Returns:
- point on map in internal format of GLMapView
-
updateStarted
void updateStarted()
Call when update started. Lock data until updateFinished is called. Update can start when big changes of zoom happened.
-
updateFinished
void updateFinished()
Call when update finished.
-
-