public class Quicklook extends ProductNode implements Thumbnail
Thumbnail.ThumbnailListener
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_QUICKLOOK_NAME |
static String |
SNAP_QUICKLOOK_FILE_PREFIX |
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME
listenerList
Constructor and Description |
---|
Quicklook(File productFile) |
Quicklook(Product product,
String name)
Constructor when only a quicklook name is given.
|
Quicklook(Product product,
String name,
Band[] quicklookBands)
Constructor when a browseFile is given.
|
Quicklook(Product product,
String name,
File browseFile)
Constructor when a browseFile is given.
|
Quicklook(Product product,
String name,
File browseFile,
boolean productCanAppendFiles,
Path productQuicklookFolder,
Band[] quicklookBands)
Constructor when a browseFile is given.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(ProductVisitor visitor)
Accepts the given visitor.
|
BufferedImage |
getImage(ProgressMonitor pm) |
File |
getProductFile() |
long |
getRawStorageSize(ProductSubsetDef subsetDef)
Gets an estimated, raw storage size in bytes of this product node.
|
boolean |
hasCachedImage() |
boolean |
hasImage() |
boolean |
hasProduct() |
void |
setProduct(Product product) |
void |
setQuicklookLink(String link) |
dispose, fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setModified, setName, setOwner, toString, updateExpression
getExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getProduct, notifyImageUpdated, removeListener
public static final String DEFAULT_QUICKLOOK_NAME
public static final String SNAP_QUICKLOOK_FILE_PREFIX
public Quicklook(File productFile)
public Quicklook(Product product, String name)
product
- the source productname
- the name of the quicklookpublic Quicklook(Product product, String name, File browseFile)
product
- the source productname
- the name of the quicklookbrowseFile
- the preview or browse image from a productpublic Quicklook(Product product, String name, Band[] quicklookBands)
product
- the source productname
- the name of the quicklookquicklookBands
- the bands to create an RGB quicklook frompublic Quicklook(Product product, String name, File browseFile, boolean productCanAppendFiles, Path productQuicklookFolder, Band[] quicklookBands)
product
- the source productname
- the name of the quicklookbrowseFile
- the preview or browse image from a productproductCanAppendFiles
- true when files may be written to the productproductQuicklookFolder
- where to write the quicklook filespublic void setProduct(Product product)
public boolean hasProduct()
public File getProductFile()
public long getRawStorageSize(ProductSubsetDef subsetDef)
getRawStorageSize
in class ProductNode
subsetDef
- if not null
the subset may limit the size returnedpublic void setQuicklookLink(String link)
public void acceptVisitor(ProductVisitor visitor)
The method simply calls visitor.visit(this)
.
acceptVisitor
in class ProductNode
visitor
- the visitor, must not be null
public boolean hasCachedImage()
hasCachedImage
in interface Thumbnail
public BufferedImage getImage(ProgressMonitor pm)
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.