uk.ac.essex.ia.media.io
Class ShowImageOperator

java.lang.Object
  extended by uk.ac.essex.ia.media.OperatorImpl
      extended by uk.ac.essex.ia.media.io.ShowImageOperator
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, Operator

public class ShowImageOperator
extends OperatorImpl

This class handles showing an image. It accepts input from any operator that outputs images and then displays them in the gui. It is useful to quicly see what is going on in an operation.
Input data = RenderdImage
Output data = none
Allowable inputs = 10
Allowable outputs = 0

See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.essex.ia.media.OperatorImpl
iconURL, inputParameters, label, operatorDescriptor, operatorDialog, translator
 
Constructor Summary
ShowImageOperator()
           
ShowImageOperator(OperatorDescriptor operatorType)
           
 
Method Summary
 java.awt.image.RenderedImage execute(java.awt.image.renderable.ParameterBlock inData)
          Execute this operator with the input data passed as a parameter The input to this operator should be a ParameterBlock
 void showOperatorDialog()
          Show a GUI that allows users to modify the parameters for the underlying operation
 
Methods inherited from class uk.ac.essex.ia.media.OperatorImpl
acceptsInputFrom, clone, getAllowedInputs, getAllowedOutputs, getHelpID, getIcon, getInputParameters, getInputParametersForWriting, getOperatorDialog, getOutputData, getRequiredInputs, getSingleSource, initSingleImageParameterBlock, readExternal, setInputParameters, setOperatorDialog, toString, writeExternal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShowImageOperator

public ShowImageOperator()

ShowImageOperator

public ShowImageOperator(OperatorDescriptor operatorType)
Method Detail

showOperatorDialog

public void showOperatorDialog()
Show a GUI that allows users to modify the parameters for the underlying operation

Specified by:
showOperatorDialog in interface Operator
Overrides:
showOperatorDialog in class OperatorImpl

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 The input to this operator should be a ParameterBlock

Specified by:
execute in interface Operator
Overrides:
execute in class OperatorImpl
Parameters:
inData - - The input data to this operator
Throws:
java.lang.Exception