uk.ac.essex.ia.media.point
Class MatchCDFOperator
java.lang.Object
uk.ac.essex.ia.media.OperatorImpl
uk.ac.essex.ia.media.point.MatchCDFOperator
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, Operator
public class MatchCDFOperator
- extends OperatorImpl
You should have received a copy of GNU public license with this code.
If not please visit this site
- See Also:
- Serialized Form
Method Summary |
java.awt.image.RenderedImage |
execute(java.awt.image.renderable.ParameterBlock inData)
Execute this operator with the input data passed as a parameter |
java.awt.image.renderable.ParameterBlock |
getInputParametersForWriting()
Overriden to return the float matrix as a string array that contains the equations that correspond to each
row of the matrix. |
void |
setInputParameters(java.awt.image.renderable.ParameterBlock inputParameters)
Overriden to convert the equations given in the parameter block to a float[][]. |
void |
showOperatorDialog()
In this function implmentations should handle displaying the OperatorImpl.operatorDialog
via its show() method. |
Methods inherited from class uk.ac.essex.ia.media.OperatorImpl |
acceptsInputFrom, clone, getAllowedInputs, getAllowedOutputs, getHelpID, getIcon, getInputParameters, getOperatorDialog, getOutputData, getRequiredInputs, getSingleSource, initSingleImageParameterBlock, readExternal, setOperatorDialog, toString, writeExternal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MatchCDFOperator
public MatchCDFOperator(OperatorDescriptor operatorType)
MatchCDFOperator
public MatchCDFOperator()
showOperatorDialog
public void showOperatorDialog()
- In this function implmentations should handle displaying the
OperatorImpl.operatorDialog
via its show() method. Also any input parameters should if instantiated be loaded
into the dialog prior to it being displayed. These should then be dislpayed after
it is complete. NB this is modal dialog so once the show method is called
execution will block. After the call the parameters can be got via
OperatorDialog.getParameter(java.lang.String)
.
- Specified by:
showOperatorDialog
in interface Operator
- Overrides:
showOperatorDialog
in class OperatorImpl
setInputParameters
public void setInputParameters(java.awt.image.renderable.ParameterBlock inputParameters)
- Overriden to convert the equations given in the parameter block to a float[][].
- Specified by:
setInputParameters
in interface Operator
- Overrides:
setInputParameters
in class OperatorImpl
- Parameters:
inputParameters
-
getInputParametersForWriting
public java.awt.image.renderable.ParameterBlock getInputParametersForWriting()
- Overriden to return the float matrix as a string array that contains the equations that correspond to each
row of the matrix.
- Specified by:
getInputParametersForWriting
in interface Operator
- Overrides:
getInputParametersForWriting
in class OperatorImpl
- Returns:
- ParameterBlock - The input parameters to this operator as string equations
execute
public java.awt.image.RenderedImage execute(java.awt.image.renderable.ParameterBlock inData)
throws java.lang.Exception
- Execute this operator with the input data passed as a parameter
- Specified by:
execute
in interface Operator
- Overrides:
execute
in class OperatorImpl
- Parameters:
inData
- - The input data to this operator
- Throws:
java.lang.Exception