Class TileLoader

  • All Implemented Interfaces:
    org.oscim.tiling.ITileDataSink

    public abstract class TileLoader
    extends java.lang.Object
    implements org.oscim.tiling.ITileDataSink
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long lastLoadTime  
      protected org.oscim.layers.tile.MapTile mTile  
      protected boolean mWorking  
    • Constructor Summary

      Constructors 
      Constructor Description
      TileLoader​(org.oscim.layers.tile.TileManager tileManager)  
    • Field Detail

      • mWorking

        protected boolean mWorking
      • mTile

        protected org.oscim.layers.tile.MapTile mTile
      • lastLoadTime

        public static long lastLoadTime
    • Constructor Detail

      • TileLoader

        public TileLoader​(org.oscim.layers.tile.TileManager tileManager)
    • Method Detail

      • dispose

        public abstract void dispose()
      • loadTile

        protected abstract boolean loadTile​(org.oscim.layers.tile.MapTile tile)
      • finish

        public void finish()
      • cancel

        public void cancel()
      • isCanceled

        public boolean isCanceled()
      • isPausing

        public boolean isPausing()
      • pause

        public void pause()
      • proceed

        public void proceed()
      • awaitPausing

        public void awaitPausing()
      • start

        public void start()
      • go

        public void go()
      • completed

        public void completed​(org.oscim.tiling.QueryResult result)
        Callback to be called by TileDataSource when finished loading or on failure. MUST BE CALLED IN ANY CASE!
        Specified by:
        completed in interface org.oscim.tiling.ITileDataSink
      • process

        public void process​(org.oscim.core.MapElement element)
        Called by TileDataSource
        Specified by:
        process in interface org.oscim.tiling.ITileDataSink
      • setTileImage

        public void setTileImage​(org.oscim.backend.canvas.Bitmap bitmap)
        Called by TileDataSource
        Specified by:
        setTileImage in interface org.oscim.tiling.ITileDataSink
      • postLoadDelay

        public static void postLoadDelay​(LoadDelayTask<?> task)