org.openstreetmap.josm.io.imagery
Class Grabber

java.lang.Object
  extended by org.openstreetmap.josm.io.imagery.Grabber
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
WMSGrabber

public abstract class Grabber
extends java.lang.Object
implements java.lang.Runnable


Field Summary
protected  ProjectionBounds b
           
protected  boolean canceled
           
protected  WMSLayer layer
           
private  boolean localOnly
           
protected  MapView mv
           
 
Constructor Summary
Grabber(MapView mv, WMSLayer layer, boolean localOnly)
           
 
Method Summary
protected  void attempt(WMSRequest request)
           
 void cancel()
           
(package private) abstract  void fetch(WMSRequest request, int attempt)
           
(package private)  int height()
           
abstract  boolean loadFromCache(WMSRequest request)
           
static int random(int min, int max)
           
 void run()
           
(package private)  int width()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mv

protected final MapView mv

layer

protected final WMSLayer layer

localOnly

private final boolean localOnly

b

protected ProjectionBounds b

canceled

protected volatile boolean canceled
Constructor Detail

Grabber

Grabber(MapView mv,
        WMSLayer layer,
        boolean localOnly)
Method Detail

fetch

abstract void fetch(WMSRequest request,
                    int attempt)
             throws java.lang.Exception
Throws:
java.lang.Exception

width

int width()

height

int height()

run

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

attempt

protected void attempt(WMSRequest request)

random

public static int random(int min,
                         int max)

loadFromCache

public abstract boolean loadFromCache(WMSRequest request)

cancel

public void cancel()


JOSM