类 EmptyTileFactory


  • public class EmptyTileFactory
    extends TileFactory
    A null implementation of TileFactory. Draws empty areas.
    作者:
    joshy
    • 构造器详细资料

      • EmptyTileFactory

        public EmptyTileFactory()
        Creates a new instance of EmptyTileFactory
      • EmptyTileFactory

        public EmptyTileFactory​(TileFactoryInfo info)
        Creates a new instance of EmptyTileFactory using the specified info.
        参数:
        info - TileFactoryInfo
    • 方法详细资料

      • getTile

        public Tile getTile​(int x,
                            int y,
                            int zoom)
        Gets an instance of an empty tile for the given tile position and zoom on the world map.
        指定者:
        getTile 在类中 TileFactory
        参数:
        x - The tile's x position on the world map.
        y - The tile's y position on the world map.
        zoom - The current zoom level.
        返回:
        Tile
      • startLoading

        protected void startLoading​(Tile tile)
        Override this method to load the tile using, for example, an ExecutorService.
        指定者:
        startLoading 在类中 TileFactory
        参数:
        tile - The tile to load.