public class Scale extends BaseScaleOperationJAI
ScaleDescriptor
,
Serialized FormOperationJAI.Parameters
operation, RENDERED_MODE
PRIMARY_SOURCE_INDEX, SOURCE_0
descriptor
Constructor and Description |
---|
Scale()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected RenderedImage |
createRenderedImage(ParameterBlockJAI parameters,
RenderingHints hints)
Applies the JAI operation.
|
protected Map<String,?> |
getProperties(RenderedImage data,
CoordinateReferenceSystem crs,
InternationalString name,
MathTransform gridToCRS,
GridCoverage2D[] sources,
OperationJAI.Parameters parameters)
Prepares the properties to be given to the coverage created by the
deriveGridCoverage method. |
protected void |
handleJAIEXTParams(ParameterBlockJAI parameters,
ParameterValueGroup parameters2)
Extension point for adding to the JAI
ParameterBlockJAI object the parameters defined
in the ParameterValueGroup , which can be read by the JAI-EXT operations. |
deriveGridCoverage
deriveCategory, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getQuantitative, handleROINoDataInternal, handleROINoDataProperties, hashCode, prepareParameters, resampleToCommonGeometry
extractSources, getFactory
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toString
protected RenderedImage createRenderedImage(ParameterBlockJAI parameters, RenderingHints hints)
OperationJAI
OperationJAI.operation
. The JAI
instance to use can be fetch from OperationJAI.getJAI(java.awt.RenderingHints)
. The default implementation returns the
following:
Subclasses may override this method in order to invokes a different JAI operation according the parameters.getJAI(hints).createNS(OperationJAI.operation.getName(), parameters, hints)
createRenderedImage
in class OperationJAI
parameters
- The parameters to be given to JAI.hints
- The rendering hints to be given to JAI.protected void handleJAIEXTParams(ParameterBlockJAI parameters, ParameterValueGroup parameters2)
OperationJAI
ParameterBlockJAI
object the parameters defined
in the ParameterValueGroup
, which can be read by the JAI-EXT operations.
Notice that if you are using JAI, the new parameters will not be accepted by the ParameterBlockJAI
instance.
handleJAIEXTParams
in class OperationJAI
parameters
- ParameterBlockJAI
instance used by the current JAI-EXT/JAI
operationparameters2
- ParameterValueGroup
instance containing input operation parametersprotected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform gridToCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters)
OperationJAI
deriveGridCoverage
method. The default implementation returns null
.getProperties
in class OperationJAI
data
- The RenderedImage
created by this operation.crs
- The coordinate reference system assigned to the coverage this OperationJAI
will produce.name
- The name assigned to the coverage this OperationJAI
will produce.gridToCRS
- The transform from grid to crs
to be
assigned to the coverage this OperationJAI
will produce.sources
- The sources to be assigned to the coverage this OperationJAI
will
produce.parameters
- The parameters that were used by this OperationJAI
.Map
with the properties generated by this OperationJAI
or null if
we haven't any.Copyright © 1996–2019 Geotools. All rights reserved.