jsky.image
Class EmptyRenderedImage

java.lang.Object
  extended by jsky.image.SimpleRenderedImage
      extended by jsky.image.EmptyRenderedImage
All Implemented Interfaces:
java.awt.image.RenderedImage

public class EmptyRenderedImage
extends SimpleRenderedImage

Implements a dummy RenderedImage, for use when there is no image to display.

Version:
$Revision: 1.1 $
Author:
Allan Brighton

Field Summary
 
Fields inherited from class jsky.image.SimpleRenderedImage
colorModel, height, minX, minY, properties, sampleModel, sources, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Constructor Summary
EmptyRenderedImage()
          Construct an "empty" image
EmptyRenderedImage(int w, int h)
          Construct an "empty" image with the given width and height in pixels
 
Method Summary
protected  javax.media.jai.PlanarImage getPreviewImage(int size)
          Return a prescaled PlanarImage that fits entirely in a window of the given size, of null if there are any errors.
 java.awt.image.Raster getTile(int tileX, int tileY)
          Generate and return the given tile (required by the RenderedImage interface).
 java.lang.Object xxxgetProperty(java.lang.String name)
          Gets a property from the property set of this image.
 
Methods inherited from class jsky.image.SimpleRenderedImage
copyData, getBounds, getColorModel, getData, getData, getHeight, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, tileXToX, tileXToX, tileYToY, tileYToY, XToTileX, XToTileX, YToTileY, YToTileY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyRenderedImage

public EmptyRenderedImage(int w,
                          int h)
Construct an "empty" image with the given width and height in pixels


EmptyRenderedImage

public EmptyRenderedImage()
Construct an "empty" image

Method Detail

getTile

public java.awt.image.Raster getTile(int tileX,
                                     int tileY)
Generate and return the given tile (required by the RenderedImage interface).

Parameters:
tileX - the X index of the requested tile in the tile array.
tileY - the Y index of the requested tile in the tile array.
Returns:
the tile given by (tileX, tileY).

xxxgetProperty

public java.lang.Object xxxgetProperty(java.lang.String name)
Gets a property from the property set of this image. (redefined from parent class to support teh #preview_image property as for FITS files).

Parameters:
name - the name of the property to get, as a String.
Returns:
a reference to the property value or null if not found.
See Also:
FITSImage

getPreviewImage

protected javax.media.jai.PlanarImage getPreviewImage(int size)
Return a prescaled PlanarImage that fits entirely in a window of the given size, of null if there are any errors.