Class FileSet
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- 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
Fields Modifier and Type Field Description static java.lang.String
FILE_SET_ABBREVIATION
static java.lang.String
FILE_SET_CODE
static java.lang.String
FILE_SET_GSD
static java.lang.String
FILE_SET_SCALE
protected static int
ICON_IMAGE_SIZE
static java.lang.String
IMAGE_ICON
static java.lang.String
IMAGE_IN_PROGRESS
protected static int
MAX_FILES_FOR_PREVIEW_IMAGE
protected static int
PREVIEW_IMAGE_SIZE
static java.lang.String
SECTOR_LIST
protected static java.util.concurrent.ThreadPoolExecutor
threadPoolExecutor
-
Constructor Summary
Constructors Constructor Description FileSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFile(java.io.File file)
void
addSectorList(java.lang.Object[] sectorList)
void
clear()
java.awt.Color
getColor()
java.lang.String
getDatasetType()
java.lang.String
getDataType()
java.util.List<java.io.File>
getFiles()
java.awt.image.BufferedImage
getImage()
javax.swing.ImageIcon
getImageIcon()
int
getLength()
Returns the number of files in the file set.int
getMaxFilesForPreviewImage()
java.lang.String
getName()
java.lang.String
getScale()
Sector
getSector()
java.lang.Object[]
getSectorList()
boolean
isElevation()
boolean
isImagery()
protected void
makeImage()
Causes the preview image to be built.protected javax.swing.ImageIcon
makeImageIcon()
Causes the preview thumbnail to be built, or returns it if it's already available.void
setColor(java.awt.Color color)
void
setDatasetType(java.lang.String datasetType)
void
setDataType(java.lang.String dataType)
void
setImage(java.awt.image.BufferedImage image)
void
setName(java.lang.String name)
void
setScale(java.lang.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
-
-
-
-
Field Detail
-
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
-
ICON_IMAGE_SIZE
protected static final int ICON_IMAGE_SIZE
- See Also:
- Constant Field Values
-
FILE_SET_CODE
public static final java.lang.String FILE_SET_CODE
- See Also:
- Constant Field Values
-
FILE_SET_ABBREVIATION
public static final java.lang.String FILE_SET_ABBREVIATION
- See Also:
- Constant Field Values
-
FILE_SET_SCALE
public static final java.lang.String FILE_SET_SCALE
- See Also:
- Constant Field Values
-
FILE_SET_GSD
public static final java.lang.String FILE_SET_GSD
- See Also:
- Constant Field Values
-
SECTOR_LIST
public static final java.lang.String SECTOR_LIST
- See Also:
- Constant Field Values
-
IMAGE_ICON
public static final java.lang.String IMAGE_ICON
- See Also:
- Constant Field Values
-
IMAGE_IN_PROGRESS
public static final java.lang.String IMAGE_IN_PROGRESS
- See Also:
- Constant Field Values
-
threadPoolExecutor
protected static java.util.concurrent.ThreadPoolExecutor threadPoolExecutor
-
-
Method Detail
-
clear
public void clear()
-
getLength
public int getLength()
Returns the number of files in the file set.- Returns:
- the number of files in the file set.
-
addFile
public void addFile(java.io.File file)
-
getFiles
public java.util.List<java.io.File> getFiles()
-
isImagery
public boolean isImagery()
-
isElevation
public boolean isElevation()
-
getDataType
public java.lang.String getDataType()
-
setDataType
public void setDataType(java.lang.String dataType)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getDatasetType
public java.lang.String getDatasetType()
-
setDatasetType
public void setDatasetType(java.lang.String datasetType)
-
getScale
public java.lang.String getScale()
-
setScale
public void setScale(java.lang.String scale)
-
getSector
public Sector getSector()
-
setSector
public void setSector(Sector sector)
-
getSectorList
public java.lang.Object[] getSectorList()
-
addSectorList
public void addSectorList(java.lang.Object[] sectorList)
-
getColor
public java.awt.Color getColor()
-
setColor
public void setColor(java.awt.Color color)
-
getMaxFilesForPreviewImage
public int getMaxFilesForPreviewImage()
-
getImageIcon
public javax.swing.ImageIcon getImageIcon()
-
getImage
public java.awt.image.BufferedImage getImage()
-
setImage
public void setImage(java.awt.image.BufferedImage image)
-
makeImage
protected void makeImage()
Causes the preview image to be built.
-
makeImageIcon
protected javax.swing.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.
-
-