Ignore:
Timestamp:
2009-10-15T19:26:17+02:00 (15 years ago)
Author:
dhansen
Message:

Need some minor accessor functions for use in the slippymap layer
plugin for JOSM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Tile.java

    r13758 r18179  
    176176    }
    177177
     178    public boolean isLoading() {
     179        return loading;
     180    }
    178181    public void setLoaded(boolean loaded) {
    179182        this.loaded = loaded;
     
    216219        return zoom + "/" + xtile + "/" + ytile + "@" + source.getName();
    217220    }
     221    public String getStatus() {
     222        String status = "new";
     223        if (this.loading)
     224            status = "loading";
     225        if (this.loaded)
     226            status = "loaded";
     227        return status;
     228    }
    218229
    219230}
Note: See TracChangeset for help on using the changeset viewer.