org.jaitools.media.jai.jiffleop
Class JiffleOpImage

java.lang.Object
  extended by javax.media.jai.PlanarImage
      extended by javax.media.jai.OpImage
          extended by org.jaitools.media.jai.jiffleop.JiffleOpImage
All Implemented Interfaces:
java.awt.image.RenderedImage, javax.media.jai.ImageJAI, javax.media.jai.PropertyChangeEmitter, javax.media.jai.PropertySource, javax.media.jai.WritablePropertySource

public class JiffleOpImage
extends javax.media.jai.OpImage

Jiffle operation.

Since:
0.1
Version:
$Id: JiffleOpImage.java 1654 2011-06-16 10:46:55Z michael.bedward $
Author:
Michael Bedward

Field Summary
 
Fields inherited from class javax.media.jai.OpImage
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler
 
Fields inherited from class javax.media.jai.PlanarImage
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Constructor Summary
JiffleOpImage(java.util.Map<java.lang.String,java.awt.image.RenderedImage> sourceImages, javax.media.jai.ImageLayout layout, java.util.Map configuration, java.lang.String script, java.lang.String destVarName, java.awt.Rectangle destBounds)
           
 
Method Summary
protected  void computeRect(javax.media.jai.PlanarImage[] sources, java.awt.image.WritableRaster dest, java.awt.Rectangle destRect)
           
protected  void computeRect(java.awt.image.Raster[] sources, java.awt.image.WritableRaster dest, java.awt.Rectangle destRect)
           
 java.awt.image.Raster computeTile(int tileX, int tileY)
           
 java.awt.Rectangle mapDestRect(java.awt.Rectangle destRect, int sourceIndex)
          For testing: returns the source image bounds.
 java.awt.Rectangle mapSourceRect(java.awt.Rectangle sourceRect, int sourceIndex)
          For testing: returns null to indicate that all of the destination could be affected.
 
Methods inherited from class javax.media.jai.OpImage
addTileToCache, cancelTiles, computesUniqueTiles, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize
 
Methods inherited from class javax.media.jai.PlanarImage
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JiffleOpImage

public JiffleOpImage(java.util.Map<java.lang.String,java.awt.image.RenderedImage> sourceImages,
                     javax.media.jai.ImageLayout layout,
                     java.util.Map configuration,
                     java.lang.String script,
                     java.lang.String destVarName,
                     java.awt.Rectangle destBounds)
Method Detail

mapSourceRect

public java.awt.Rectangle mapSourceRect(java.awt.Rectangle sourceRect,
                                        int sourceIndex)
For testing: returns null to indicate that all of the destination could be affected.

Specified by:
mapSourceRect in class javax.media.jai.OpImage
Parameters:
sourceRect -
sourceIndex -
Returns:

mapDestRect

public java.awt.Rectangle mapDestRect(java.awt.Rectangle destRect,
                                      int sourceIndex)
For testing: returns the source image bounds.

Specified by:
mapDestRect in class javax.media.jai.OpImage
Parameters:
destRect -
sourceIndex -
Returns:

computeRect

protected void computeRect(javax.media.jai.PlanarImage[] sources,
                           java.awt.image.WritableRaster dest,
                           java.awt.Rectangle destRect)
Overrides:
computeRect in class javax.media.jai.OpImage

computeRect

protected void computeRect(java.awt.image.Raster[] sources,
                           java.awt.image.WritableRaster dest,
                           java.awt.Rectangle destRect)
Overrides:
computeRect in class javax.media.jai.OpImage

computeTile

public java.awt.image.Raster computeTile(int tileX,
                                         int tileY)
Overrides:
computeTile in class javax.media.jai.OpImage


Copyright © 2011. All Rights Reserved.