org.geotools.renderer.j2d
Class Hints

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

Deprecated. Replaced by the set of hints in org.geotools.display.canvas.AbstractCanvas as part of the port of J2D-renderer to the new GO-1 based API. Note that it is not possible to mix J2D-renderer classes with GO-1 rendering engine. Migration from J2D-renderer to the GO-1 API will requires the replacement of all deprecated classes together. Because the new GO-1 rendering engine is a work in progress, see GEOT-776 in order to determine if enough functionalites have been ported for yours need.

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

A set of RenderingHints keys for rendering operations. Hints are memorized by Renderer, which formard them to Graphics2D at rendering time. Rendering hints can be used to control some low-level details, like the expected resolution.

Version:
$Id: Hints.java 17890 2006-02-06 08:46:14Z 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 FINEST_RESOLUTION
          Deprecated. The finest rendering resolution in unit of dots (1/72 of inch).
static java.awt.RenderingHints.Key GRID_COVERAGE_PROCESSOR
          Deprecated. Key for setting a GridCoverageProcessor instance other than the default.
static java.awt.RenderingHints.Key JAI_INSTANCE
          Deprecated. Key for setting a JAI object other than the default one when a JAI operation must be applied.
static java.awt.RenderingHints.Key PREFETCH
          Deprecated. Boolean.TRUE if the renderer is allowed to prefetch data before to paint layers.
static java.awt.RenderingHints.Key REQUIRED_RESOLUTION
          Deprecated. The required rendering resolution in unit of dots (1/72 of inch).
 
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

GRID_COVERAGE_PROCESSOR

public static final java.awt.RenderingHints.Key GRID_COVERAGE_PROCESSOR
Deprecated. 
Key for setting a GridCoverageProcessor instance other than the default. Grid coverage processor are used for resampling grid coverage when the rendering coordinate system is different than the grid coverage one.


JAI_INSTANCE

public static final java.awt.RenderingHints.Key JAI_INSTANCE
Deprecated. 
Key for setting a JAI object other than the default one when a JAI operation must be applied. This is used especially for the scale operation when rendering an image with RenderedGridCoverage. This is the same key than org.geotools.gp.Hints.JAI_INSTANCE and is declared here only for convenience. If there is no value for this key but a value exists for GRID_COVERAGE_PROCESSOR, then the JAI instance will be inherited from the specified GridCoverageProcessor.


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. This is the same key than org.geotools.gp Hints.COORDINATE_TRANSFORMATION_FACTORY and is declared here only for convenience. If there is no value for this key but a value exists for GRID_COVERAGE_PROCESSOR, then the JAI instance will be inherited from the specified GridCoverageProcessor.


FINEST_RESOLUTION

public static final java.awt.RenderingHints.Key FINEST_RESOLUTION
Deprecated. 
The finest rendering resolution in unit of dots (1/72 of inch). This is the unit used by the default Java2D coordinate system. If a Geometry to be rendered has a finer resolution, it will be decimated in order to speed up rendering. By convention, a resolution of 0 means the finest resolution available.


REQUIRED_RESOLUTION

public static final java.awt.RenderingHints.Key REQUIRED_RESOLUTION
Deprecated. 
The required rendering resolution in unit of dots (1/72 of inch). This is the unit used by the default Java2D coordinate system. If a Geometry has been decimated to a worst resolution, it will be resampled in order to gets a more acceptable resolution. This value should be greater than FINEST_RESOLUTION.


PREFETCH

public static final java.awt.RenderingHints.Key PREFETCH
Deprecated. 
Boolean.TRUE if the renderer is allowed to prefetch data before to paint layers. Prefetching data may speed up rendering on machine with more than one processor. If this hint is not provided, then the renderer will prefetch data if and only if the machine has at least two processors.

See Also:
RenderedLayer.prefetch(org.geotools.renderer.j2d.RenderingContext), PlanarImage.prefetchTiles(java.awt.Point[]), Runtime.availableProcessors()
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.