ucar.unidata.idv.ui
Class ImageWrapper

java.lang.Object
  extended by ucar.unidata.idv.ui.ImageWrapper

public class ImageWrapper
extends Object

Class ImageWrapper Holds information about captured images

Version:
$Revision: 1.3 $
Author:
IDV Development Team

Constructor Summary
ImageWrapper(String path)
          ctor
ImageWrapper(String path, DateTime dttm)
          ctor
ImageWrapper(String path, DateTime dttm, GeoLocationInfo bounds)
          ctor
ImageWrapper(String path, DateTime dttm, GeoLocationInfo bounds, double[] position)
          ctor
 
Method Summary
 void deleteFile()
          delete the image file
 GeoLocationInfo getBounds()
          Get the Bounds property.
 DateTime getDttm()
          Get the Dttm property.
 String getPath()
          Get the Path property.
 double[] getPosition()
          Get the Position property.
 Hashtable getProperties()
          Get the Properties property.
 Object getProperty(Object key)
          _more_
static List<String> makeFileList(List<ImageWrapper> wrappers)
          utility to return a list of the image paths in the given list of ImageWrappers
static List<ImageWrapper> makeImageWrappers(List source)
          utility to create a list of ImageWrapper from a list of file names
 void setBounds(GeoLocationInfo value)
          Set the Bounds property.
 void setDttm(DateTime value)
          Set the Dttm property.
 void setPath(String value)
          Set the Path property.
 void setPosition(double[] value)
          Set the Position property.
 void setProperties(Hashtable value)
          Set the Properties property.
 String toString()
          to string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageWrapper

public ImageWrapper(String path)
ctor

Parameters:
path - the image path

ImageWrapper

public ImageWrapper(String path,
                    DateTime dttm)
ctor

Parameters:
path - image file path
dttm - date

ImageWrapper

public ImageWrapper(String path,
                    DateTime dttm,
                    GeoLocationInfo bounds)
ctor

Parameters:
path - image path
dttm - date time
bounds - bounds

ImageWrapper

public ImageWrapper(String path,
                    DateTime dttm,
                    GeoLocationInfo bounds,
                    double[] position)
ctor

Parameters:
path - image path
dttm - date/time
bounds - bounds
position - viewpoint position
Method Detail

makeFileList

public static List<String> makeFileList(List<ImageWrapper> wrappers)
utility to return a list of the image paths in the given list of ImageWrappers

Parameters:
wrappers - image wrappers
Returns:
image file paths

makeImageWrappers

public static List<ImageWrapper> makeImageWrappers(List source)
utility to create a list of ImageWrapper from a list of file names

Parameters:
source - list of file names
Returns:
list of image wrappers

toString

public String toString()
to string

Overrides:
toString in class Object
Returns:
to string

deleteFile

public void deleteFile()
delete the image file


setPath

public void setPath(String value)
Set the Path property.

Parameters:
value - The new value for Path

getPath

public String getPath()
Get the Path property.

Returns:
The Path

setDttm

public void setDttm(DateTime value)
Set the Dttm property.

Parameters:
value - The new value for Dttm

getDttm

public DateTime getDttm()
Get the Dttm property.

Returns:
The Dttm

setBounds

public void setBounds(GeoLocationInfo value)
Set the Bounds property.

Parameters:
value - The new value for Bounds

getBounds

public GeoLocationInfo getBounds()
Get the Bounds property.

Returns:
The Bounds

setPosition

public void setPosition(double[] value)
Set the Position property.

Parameters:
value - The new value for Position

getPosition

public double[] getPosition()
Get the Position property.

Returns:
The Position

setProperties

public void setProperties(Hashtable value)
Set the Properties property.

Parameters:
value - The new value for Properties

getProperties

public Hashtable getProperties()
Get the Properties property.

Returns:
The Properties

getProperty

public Object getProperty(Object key)
_more_

Parameters:
key - _more_
Returns:
_more_