Package org.gvsig.raster.lib.legend.spi
Class AbstractColoredOperation
java.lang.Object
org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
org.gvsig.raster.lib.legend.spi.AbstractColoredOperation
- All Implemented Interfaces:
org.gvsig.raster.lib.buffer.api.operations.Operation,org.gvsig.raster.lib.buffer.spi.operations.OperationServices,ColoredOperation
public abstract class AbstractColoredOperation
extends org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
implements ColoredOperation
- Author:
- fdiaz
-
Field Summary
Fields inherited from class org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
COPY_UNPROCESSED_BANDS_PARAMFields inherited from interface org.gvsig.raster.lib.legend.api.operations.ColoredOperation
COLOR_INTERPRETATION_PARAM, COLOR_TABLE_OPERATION_NAME, OUTPUT_COLOR_INTERPRETATION_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionAbstractColoredOperation(org.gvsig.raster.lib.buffer.api.operations.OperationFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ColorInterpretationprotected org.gvsig.raster.lib.buffer.api.NoData[]getNoDatasAsArray(List<org.gvsig.raster.lib.buffer.api.NoData> theNoDatas) protected ColorInterpretationThis is a utility method that return a list of the ColorInterpretation for the processable bands of the input buffer.protected String[]This is a utility method that return a copy of the ColorInterpretation for the processable band of the input buffer.protected List<org.gvsig.raster.lib.buffer.api.NoData> This is a utility method that return a copy of the NoData of the processable band of the input buffer.protected org.gvsig.raster.lib.buffer.api.NoData[]This is a utility method that return a copy of the NoData of the processable band of the input buffer.This is a utility method that return a copy of the types of the processable band of the input buffer.protected int[]This is a utility method that return a copy of the types of the processable band of the input buffer.protected int[]getTypesAsArray(List<Integer> theTypes) protected booleanisProcessableBand(int band) voidvoidvoidprocess()protected voidsetOutputColorInterpretation(ColorInterpretation theColorInterpretation) Methods inherited from class org.gvsig.raster.lib.buffer.spi.operations.AbstractOperation
execute, getFactory, getInputBuffer, getOutputBuffer, getParameter, getParameters, getTaskStatus, mustCopyUnprocessedBands, setOutputBuffer, setParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.raster.lib.buffer.api.operations.Operation
execute, getFactory
-
Constructor Details
-
AbstractColoredOperation
public AbstractColoredOperation(org.gvsig.raster.lib.buffer.api.operations.OperationFactory factory) - Parameters:
factory-
-
-
Method Details
-
getInputColorInterpretation
-
getOutputColorInterpretation
-
setOutputColorInterpretation
-
preProcess
public void preProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException- Specified by:
preProcessin interfaceorg.gvsig.raster.lib.buffer.spi.operations.OperationServices- Overrides:
preProcessin classorg.gvsig.raster.lib.buffer.spi.operations.AbstractOperation- Throws:
org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
-
process
public void process() throws org.gvsig.raster.lib.buffer.spi.exceptions.ProcessingOperationException- Specified by:
processin interfaceorg.gvsig.raster.lib.buffer.spi.operations.OperationServices- Overrides:
processin classorg.gvsig.raster.lib.buffer.spi.operations.AbstractOperation- Throws:
org.gvsig.raster.lib.buffer.spi.exceptions.ProcessingOperationException
-
postProcess
public void postProcess() throws org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException- Specified by:
postProcessin interfaceorg.gvsig.raster.lib.buffer.spi.operations.OperationServices- Overrides:
postProcessin classorg.gvsig.raster.lib.buffer.spi.operations.AbstractOperation- Throws:
org.gvsig.raster.lib.buffer.api.exceptions.BufferOperationException
-
isProcessableBand
protected boolean isProcessableBand(int band) -
getProcessableBandColorInterpretations
This is a utility method that return a list of the ColorInterpretation for the processable bands of the input buffer.- Returns:
- List of ColorInterpretation
-
getProcessableBandColorInterpretationsAsArray
This is a utility method that return a copy of the ColorInterpretation for the processable band of the input buffer.- Returns:
- array of ColorInterpretation
-
getProcessableBandNoDatas
This is a utility method that return a copy of the NoData of the processable band of the input buffer.- Returns:
- List of NoDatas
-
getProcessableBandNoDatasAsArray
protected org.gvsig.raster.lib.buffer.api.NoData[] getProcessableBandNoDatasAsArray()This is a utility method that return a copy of the NoData of the processable band of the input buffer.- Returns:
- array of NoDatas
-
getNoDatasAsArray
protected org.gvsig.raster.lib.buffer.api.NoData[] getNoDatasAsArray(List<org.gvsig.raster.lib.buffer.api.NoData> theNoDatas) -
getProcessableBandTypes
This is a utility method that return a copy of the types of the processable band of the input buffer.- Returns:
- list of types
-
getProcessableBandTypesAsArray
protected int[] getProcessableBandTypesAsArray()This is a utility method that return a copy of the types of the processable band of the input buffer.- Returns:
- Array of types
-
getTypesAsArray
-