Package globus.glmap
Interface GLMapImageGroupCallback
public interface GLMapImageGroupCallback
GLMapImageGroupCallback tells image group about it's contents.- 
Method SummaryModifier and TypeMethodDescriptionintgetImageIndex(int i) Return variant of image to usegetImagePos(int i) Return location of image on mapintReturn total number of images that will be displayed by image groupandroid.graphics.BitmapgetImageVariantBitmap(int i) Return bitmap to use for given variant of imagegetImageVariantOffset(int i) Return offset to use for given variant of imageintReturn number of unique images which will be used by image groupvoidCall when update finished.voidCall when update started.
- 
Method Details- 
getImageVariantsCountint getImageVariantsCount()Return number of unique images which will be used by image group- Returns:
- number of unique images
 
- 
getImageVariantBitmapandroid.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
 
- 
getImageVariantOffsetReturn offset to use for given variant of image- Parameters:
- i- index of image variant (0 .. variantsCount-1)
- Returns:
- offset for bitmap in pixels
 
- 
getImagesCountint getImagesCount()Return total number of images that will be displayed by image group- Returns:
- number of images
 
- 
getImageIndexint 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)
 
- 
getImagePosReturn location of image on map- Parameters:
- i- index of image (0 .. imagesCount-1)
- Returns:
- point on map in internal format of GLMapView
 
- 
updateStartedvoid updateStarted()Call when update started. Lock data until updateFinished is called. Update can start when big changes of zoom happened.
- 
updateFinishedvoid updateFinished()Call when update finished.
 
-