NASA World Wind

gov.nasa.worldwindx.applications.dataimporter
Class FileSet

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwindx.applications.dataimporter.FileSet
All Implemented Interfaces:
AVList
Direct Known Subclasses:
FileSetRPF

public class FileSet
extends AVListImpl

Represents a collection of installable data.


Field Summary
static String FILE_SET_ABBREVIATION
           
static String FILE_SET_CODE
           
static String FILE_SET_GSD
           
static String FILE_SET_SCALE
           
protected static int ICON_IMAGE_SIZE
           
static String IMAGE_ICON
           
static String IMAGE_IN_PROGRESS
           
protected static int MAX_FILES_FOR_PREVIEW_IMAGE
           
protected static int PREVIEW_IMAGE_SIZE
           
static String SECTOR_LIST
           
protected static ThreadPoolExecutor threadPoolExecutor
           
 
Constructor Summary
FileSet()
           
 
Method Summary
 void addFile(File file)
           
 void addSectorList(Object[] sectorList)
           
 void clear()
           
 Color getColor()
           
 String getDatasetType()
           
 String getDataType()
           
 List<File> getFiles()
           
 BufferedImage getImage()
           
 ImageIcon getImageIcon()
           
 int getLength()
          Returns the number of files in the file set.
 int getMaxFilesForPreviewImage()
           
 String getName()
           
 String getScale()
           
 Sector getSector()
           
 Object[] getSectorList()
           
 boolean isElevation()
           
 boolean isImagery()
           
protected  void makeImage()
          Causes the preview image to be built.
protected  ImageIcon makeImageIcon()
          Causes the preview thumbnail to be built, or returns it if it's already available.
 void setColor(Color color)
           
 void setDatasetType(String datasetType)
           
 void setDataType(String dataType)
           
 void setImage(BufferedImage image)
           
 void setName(String name)
           
 void setScale(String scale)
           
 void setSector(Sector sector)
           
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_SET_ABBREVIATION

public static final String FILE_SET_ABBREVIATION
See Also:
Constant Field Values

FILE_SET_CODE

public static final String FILE_SET_CODE
See Also:
Constant Field Values

FILE_SET_GSD

public static final String FILE_SET_GSD
See Also:
Constant Field Values

FILE_SET_SCALE

public static final String FILE_SET_SCALE
See Also:
Constant Field Values

ICON_IMAGE_SIZE

protected static final int ICON_IMAGE_SIZE
See Also:
Constant Field Values

IMAGE_ICON

public static final String IMAGE_ICON
See Also:
Constant Field Values

IMAGE_IN_PROGRESS

public static final String IMAGE_IN_PROGRESS
See Also:
Constant Field Values

MAX_FILES_FOR_PREVIEW_IMAGE

protected static final int MAX_FILES_FOR_PREVIEW_IMAGE
See Also:
Constant Field Values

PREVIEW_IMAGE_SIZE

protected static final int PREVIEW_IMAGE_SIZE
See Also:
Constant Field Values

SECTOR_LIST

public static final String SECTOR_LIST
See Also:
Constant Field Values

threadPoolExecutor

protected static ThreadPoolExecutor threadPoolExecutor
Constructor Detail

FileSet

public FileSet()
Method Detail

addFile

public void addFile(File file)

addSectorList

public void addSectorList(Object[] sectorList)

clear

public void clear()

getColor

public Color getColor()

getDatasetType

public String getDatasetType()

getDataType

public String getDataType()

getFiles

public List<File> getFiles()

getImage

public BufferedImage getImage()

getImageIcon

public ImageIcon getImageIcon()

getLength

public int getLength()
Returns the number of files in the file set.

Returns:
the number of files in the file set.

getMaxFilesForPreviewImage

public int getMaxFilesForPreviewImage()

getName

public String getName()

getScale

public String getScale()

getSector

public Sector getSector()

getSectorList

public Object[] getSectorList()

isElevation

public boolean isElevation()

isImagery

public boolean isImagery()

makeImage

protected void makeImage()
Causes the preview image to be built.


makeImageIcon

protected ImageIcon makeImageIcon()
Causes the preview thumbnail to be built, or returns it if it's already available.

Returns:
the preview thumbnail, or null if it's not yet available.

setColor

public void setColor(Color color)

setDatasetType

public void setDatasetType(String datasetType)

setDataType

public void setDataType(String dataType)

setImage

public void setImage(BufferedImage image)

setName

public void setName(String name)

setScale

public void setScale(String scale)

setSector

public void setSector(Sector sector)

NASA World Wind