org.geotools.coverage.processing.operation
Class Scale

Object
  extended by AbstractOperation
      extended by Operation2D
          extended by OperationJAI
              extended by BaseScaleOperationJAI
                  extended by Scale
All Implemented Interfaces:
Serializable, Operation

public class Scale
extends BaseScaleOperationJAI

This operation is simply a wrapper for the JAI scale operation which allows me to arbitrarily scale and translate a rendered image.

Since:
2.3
Author:
Simone Giannecchini
See Also:
ScaleDescriptor, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters
 
Field Summary
 
Fields inherited from class OperationJAI
operation, RENDERED_MODE
 
Fields inherited from class Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0
 
Fields inherited from class AbstractOperation
descriptor
 
Constructor Summary
Scale()
          Default constructor.
 
Method Summary
protected  RenderedImage createRenderedImage(ParameterBlockJAI parameters, RenderingHints hints)
          Applies the JAI operation.
 
Methods inherited from class BaseScaleOperationJAI
deriveGridCoverage
 
Methods inherited from class OperationJAI
deriveCategory, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, getJAI, getOperationDescriptor, getProperties, getQuantitative, prepareParameters, resampleToCommonGeometry
 
Methods inherited from class Operation2D
computeOnGeophysicsValues, extractSources, getFactory
 
Methods inherited from class AbstractOperation
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, hashCode, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Scale

public Scale()
Default constructor.

Method Detail

createRenderedImage

protected RenderedImage createRenderedImage(ParameterBlockJAI parameters,
                                            RenderingHints hints)
Description copied from class: OperationJAI
Applies the JAI operation. The operation name can be fetch from OperationJAI.operation. The JAI instance to use can be fetch from OperationJAI.getJAI(java.awt.RenderingHints). The default implementation returns the following:
 getJAI(hints).createNS(OperationJAI.operation.getName(), parameters, hints)
 
Subclasses may override this method in order to invokes a different JAI operation according the parameters.

Overrides:
createRenderedImage in class OperationJAI
Parameters:
parameters - The parameters to be given to JAI.
hints - The rendering hints to be given to JAI.
Returns:
The result of JAI operation using the given parameters and hints.


Copyright © 1996-2014 Geotools. All Rights Reserved.