|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.image.fits.codec.FITSData
public abstract class FITSData
An abstract base class for performing data type specific operations on 2D FITS data.
Field Summary | |
---|---|
protected FITSImage |
_fitsImage
Reference to the class managing the image access |
protected int |
_height
The number of FITS pixels in the Y direction |
protected int |
_naxis
Number of axes (Currently only the width and height are considerred) |
protected int |
_width
The number of FITS pixels in the X direction |
Constructor Summary | |
---|---|
FITSData(FITSImage fitsImage)
Constructor. |
Method Summary | |
---|---|
protected void |
fillTile(java.lang.Object destArray,
int x,
int y,
int w,
int h)
Fill the given array with image data starting at the given offsets and with the given width and height in image pixels. |
abstract java.awt.image.Raster |
getPreviewImage(java.awt.image.Raster tile,
int factor)
Return a prescaled preview image at "1/factor" of the normal size in the given raster tile. |
abstract java.awt.image.Raster |
getTile(java.awt.image.Raster tile,
int subsample,
int width,
int height)
Fill in the given tile with the appropriate image data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FITSImage _fitsImage
protected int _naxis
protected int _width
protected int _height
Constructor Detail |
---|
public FITSData(FITSImage fitsImage)
fitsImage
- the FITS imageMethod Detail |
---|
protected void fillTile(java.lang.Object destArray, int x, int y, int w, int h) throws java.io.IOException
destArray
- the image data arrayx
- the x offset in the image datay
- the y offset in the image dataw
- the width of the data to geth
- the height of the data to get
java.io.IOException
public abstract java.awt.image.Raster getTile(java.awt.image.Raster tile, int subsample, int width, int height) throws java.io.IOException
tile
- the tile to fill with datasubsample
- the increment to use when zooming out using the mapped byte bufferwidth
- the total image width in pixelsheight
- the total image height in pixels
java.io.IOException
public abstract java.awt.image.Raster getPreviewImage(java.awt.image.Raster tile, int factor) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |