org.geotools.gp
Class Hints

java.lang.Object
  extended byjava.awt.RenderingHints.Key
      extended byorg.geotools.gp.Hints

Deprecated. Replaced by Hints.

public final class Hints
extends java.awt.RenderingHints.Key

A set of RenderingHints keys for grid coverage operations. Hints are memorized by GridCoverageProcessor, which formard them to Operation.doOperation(javax.media.jai.ParameterList, java.awt.RenderingHints) at every invocation. Rendering hints can be used to control some low-level details, like the JAI instance to use when performing operation. Operations may use the hints or ignore them.

For example, if a user wants to use the "Resample" operation with a custom CoordinateTransformation, he should first create its own CoordinateTransformationFactory implementation. Then, he can create a GridCoverageProcessor with its factory as a rendering hint:

 CoordinateTransformationFactory myFactory = ...
 RenderingHints hints = new RenderingHints(Hints.COORDINATE_TRANSFORMATION_FACTORY, myFactory);
 GridCoverageProcessor processor = new GridCoverageProcessor(hints);
 

Version:
$Id: Hints.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Field Summary
static java.awt.RenderingHints.Key COORDINATE_TRANSFORMATION_FACTORY
          Deprecated. Key for setting a CoordinateTransformationFactory object other than the default one when coordinate transformations must be performed at rendering time.
static java.awt.RenderingHints.Key JAI_INSTANCE
          Deprecated. Key for setting a JAI instance other than the default one when JAI operation must be performed at rendering time.
static java.awt.RenderingHints.Key SAMPLE_DIMENSION_TYPE
          Deprecated. Key for setting a SampleDimensionType other than the default one when sample values must be rescaled at rendering time.
 
Method Summary
 boolean isCompatibleValue(java.lang.Object value)
          Deprecated. Returns true if the specified object is a valid value for this Key.
 
Methods inherited from class java.awt.RenderingHints.Key
equals, hashCode, intKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAI_INSTANCE

public static final java.awt.RenderingHints.Key JAI_INSTANCE
Deprecated. 
Key for setting a JAI instance other than the default one when JAI operation must be performed at rendering time.


COORDINATE_TRANSFORMATION_FACTORY

public static final java.awt.RenderingHints.Key COORDINATE_TRANSFORMATION_FACTORY
Deprecated. 
Key for setting a CoordinateTransformationFactory object other than the default one when coordinate transformations must be performed at rendering time.


SAMPLE_DIMENSION_TYPE

public static final java.awt.RenderingHints.Key SAMPLE_DIMENSION_TYPE
Deprecated. 
Key for setting a SampleDimensionType other than the default one when sample values must be rescaled at rendering time.

Method Detail

isCompatibleValue

public boolean isCompatibleValue(java.lang.Object value)
Deprecated. 
Returns true if the specified object is a valid value for this Key.

Parameters:
value - The object to test for validity.
Returns:
true if the value is valid; false otherwise.


Copyright © GeoTools. All Rights Reserved.