com.moximedia.ows
Class ImageUrlReaderThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.moximedia.ows.ImageUrlReaderThread
All Implemented Interfaces:
java.lang.Runnable

public class ImageUrlReaderThread
extends java.lang.Thread

Helper class used when merging images from multiple sources. This class is used as a thread so multiple images can be retrieved simultaneously.

Author:
Doug Cates - www.moximedia.com

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImageUrlReaderThread(java.lang.String url)
          Creates a new instance of ImageUrlReaderThread
 
Method Summary
 java.awt.image.BufferedImage getImage()
          Gets the image retrieved by this class.
 java.lang.String getUrl()
          Gets the URL string that this class is using.
 void run()
          Over-rides run() method in java.lang.Thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageUrlReaderThread

public ImageUrlReaderThread(java.lang.String url)
Creates a new instance of ImageUrlReaderThread

Parameters:
url - The URL string of where to get the image.
Method Detail

getUrl

public java.lang.String getUrl()
Gets the URL string that this class is using.

Returns:
The URL string.

getImage

public java.awt.image.BufferedImage getImage()
Gets the image retrieved by this class. If the image hasn't been received yet, this method returns null.

Returns:
The image, or null if it isn't finished yet.

run

public void run()
Over-rides run() method in java.lang.Thread.



Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.