public class ProductImageFile extends ProductFile
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
CVS ID
|
creationTime, id, path, product, proffered, ref, size, type, version
Constructor and Description |
---|
ProductImageFile(java.lang.String id,
HiProduct product,
ProductFileType type,
java.lang.String path,
int version,
boolean proffered)
Create a new image product
|
ProductImageFile(java.lang.String id,
HiProduct product,
java.lang.String ref,
ProductFileType type,
java.lang.String path,
int version,
boolean proffered)
Create a new image product
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAreaGpx()
Get a string representation of the total number of pixels
|
java.lang.String |
getAreaKm2()
Get a string representation of the total area in square kilometers
|
java.awt.Dimension |
getDimensions()
Get the pixel dimensions, will be zero if unknown.
|
float |
getScale()
Get the scale in meters per pixel.
|
java.lang.String |
getScaleMpx()
Get the scale in meters per pixel.
|
java.lang.String |
getSizeKm()
Get a string representation of the size in kilometers
|
java.lang.String |
getSizePx()
Get a string representation of the size in pixels.
|
void |
setDimensions(java.awt.Dimension dim)
Set the pixel dim.
|
void |
setScale(float mpx)
Set the scale in meters per pixel.
|
getCreationTime, getId, getPath, getProduct, getProffered, getSize, getType, getVersion, setCreationTime, setPath, setSize, toString
public static final java.lang.String ID
public ProductImageFile(java.lang.String id, HiProduct product, ProductFileType type, java.lang.String path, int version, boolean proffered)
id
- String identifierproduct
- unique product identifiertype
- file typepath
- absolute pathversion
- numberproffered
- true if availablepublic ProductImageFile(java.lang.String id, HiProduct product, java.lang.String ref, ProductFileType type, java.lang.String path, int version, boolean proffered)
id
- String identifierproduct
- unique product identifierref
- Referring product identifiertype
- file typepath
- absolute pathversion
- numberproffered
- true if availablepublic java.awt.Dimension getDimensions()
public java.lang.String getSizePx()
public java.lang.String getSizeKm()
public java.lang.String getAreaGpx()
public java.lang.String getAreaKm2()
public java.lang.String getScaleMpx()
public void setDimensions(java.awt.Dimension dim)
dim
- pixelspublic float getScale()
public void setScale(float mpx)
mpx
- meters per pixelCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona