Class StyledTiledMapRenderer.TileLoader

    • Constructor Detail

      • TileLoader

        TileLoader​(OsmData<?,​?,​?,​?> data,
                   TileZXY tile,
                   int tileSize,
                   java.util.Collection<StyledTiledMapRenderer.TileLoader> tileCollection)
        Create a new tile loader
        Parameters:
        data - The data to use for painting
        tile - The tile this tile loader is for
        tileSize - The expected size of this tile
        tileCollection - The collection of tiles that this tile is being rendered with (for batching)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • cacheTile

        private void cacheTile​(java.awt.image.BufferedImage tImage)
        Finish a tile generation job
        Parameters:
        tImage - The tile image for this job
      • cancel

        void cancel()
        Cancel this job without causing a CancellationException