com.moximedia.aims
Class ImageReaderThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.moximedia.aims.ImageReaderThread
All Implemented Interfaces:
java.lang.Runnable

public class ImageReaderThread
extends java.lang.Thread

Class used for merging images using threading.

Author:
Doug Cates - www.moximedia.com

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImageReaderThread(java.io.File file)
          Creates a new instance of ImageReaderThread using a file containing the image.
ImageReaderThread(java.lang.String url)
          Creates a new instance of ImageReaderThread using a string containing a URL.
 
Method Summary
 java.awt.image.BufferedImage getImage()
          Gets the image created by this thread.
 void run()
          Overrides run method of 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

ImageReaderThread

public ImageReaderThread(java.lang.String url)
Creates a new instance of ImageReaderThread using a string containing a URL.

Parameters:
url - A string contining the URL to an image.

ImageReaderThread

public ImageReaderThread(java.io.File file)
Creates a new instance of ImageReaderThread using a file containing the image.

Parameters:
file - The file containing the image.
Method Detail

getImage

public java.awt.image.BufferedImage getImage()
Gets the image created by this thread.

Returns:
The image, or null if the thread is alive, or if there was an error retrieving the image.

run

public void run()
Overrides run method of Thread.



Internet Mapping Framework for ArcIMS Java Object Model API (v5.1.00)
Copyright © 2006 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.