Class imageDisplay

java.lang.Object
  |
  +--operator
        |
        +--operator1DInt
              |
              +--imageDisplay

public class imageDisplay
extends operator1DInt

This operator displays the image input, the output is as the same as the input.


Inner Class Summary
 class imageDisplay.PixelListener
          class for getting the current pixel position in the image canvas
 
Fields inherited from class operator
box, name, panel, parameters, type
 
Constructor Summary
imageDisplay(javax.swing.JPanel panel, linkData links)
          Constructor for creating a new imageLoad when one is selected from the menu system.
 
Method Summary
 int getNumber()
          Returns the number of this operator.
 void go()
          Runs the operator and propagates the image to all the operators that it links to.
 void loadParameters(java.io.StreamTokenizer tokenizer)
          Loads the required parameters (number of iterations) from the input stream, so the operator can be recreated in an identical state to when it was saved.
 java.lang.String saveParameters()
          Returns a String representing all the parameters for this operator for the purpose of saving the system setup (and being able to load it again at a future date), there are no parameters with imageDisplay that require saving.
 
Methods inherited from class operator1DInt
getOutput1, getOutput2, link1To1, link1To2, link2To1, link2To2, setInput1, setInput2
 
Methods inherited from class operator
getBox, getName, getParameters, getType, propagate, propagateSingleLink, saveOperator, setBox, setName, setType, showParameters, updateParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

imageDisplay

public imageDisplay(javax.swing.JPanel panel,
                    linkData links)
Constructor for creating a new imageLoad when one is selected from the menu system.
Parameters:
panel - the parent of all operatorBoxes on the UI
links - all the links in the system
Method Detail

getNumber

public int getNumber()
Returns the number of this operator.
Returns:
the number of the operator

loadParameters

public void loadParameters(java.io.StreamTokenizer tokenizer)
                    throws java.io.IOException
Loads the required parameters (number of iterations) from the input stream, so the operator can be recreated in an identical state to when it was saved.
Parameters:
tokenizer - the input stream split into tokens
Throws:
java.io.IOException - if error occurs during token retrieval
Overrides:
loadParameters in class operator

saveParameters

public java.lang.String saveParameters()
Returns a String representing all the parameters for this operator for the purpose of saving the system setup (and being able to load it again at a future date), there are no parameters with imageDisplay that require saving.
Overrides:
saveParameters in class operator

go

public void go()
Runs the operator and propagates the image to all the operators that it links to.
Overrides:
go in class operator