All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.oscim.layers.tile.LoadDelayTask Maven / Gradle / Ivy

Go to download

OpenGL vector map library written in Java - running on Android, iOS, Desktop and within the browser.

There is a newer version: 0.20.0
Show newest version
package org.oscim.layers.tile;

import com.badlogic.gdx.Gdx;

import org.oscim.renderer.MapRenderer;
import org.oscim.tiling.ITileDataSink;

public abstract class LoadDelayTask implements Runnable {
    protected final MapTile tile;
    protected final ITileDataSink sink;
    protected final T data;

    public LoadDelayTask(MapTile tile, ITileDataSink sink, T data) {
        this.tile = tile;
        this.sink = sink;
        this.data = data;
    }

    @Override
    public void run() {
        if (MapRenderer.frametime == TileLoader.lastLoadTime) {
            Gdx.app.postRunnable(this);
            return;
        }
        continueLoading();
    }

    public abstract void continueLoading();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy