Class imageLoad

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

public class imageLoad
extends operator1DInt

Operator used to load images into the system for further manipulation from files stored somewhere.


Inner Class Summary
 class imageLoad.PixelListener
          class for getting the current pixel position in the image canvas
 
Fields inherited from class operator
box, name, panel, parameters, type
 
Constructor Summary
imageLoad(javax.swing.JPanel panel, linkData links, java.net.URL docbase)
          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 (if the currently loaded image contains data) and propagates the image to all the operators that imageLoad links to.
 void loadParameters(java.io.StreamTokenizer tokenizer)
          Loads the filename from the input stream, so the operator can be recreated in an identical state to when it was saved.
 void loadParameters(java.io.StreamTokenizer tokenizer, java.net.URL docbase)
           
 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).
 void updateDisplay()
          Displays the image in the parameter's window
 
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

imageLoad

public imageLoad(javax.swing.JPanel panel,
                 linkData links,
                 java.net.URL docbase)
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 filename 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

loadParameters

public void loadParameters(java.io.StreamTokenizer tokenizer,
                           java.net.URL docbase)
                    throws java.io.IOException

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).
Overrides:
saveParameters in class operator

go

public void go()
Runs the operator (if the currently loaded image contains data) and propagates the image to all the operators that imageLoad links to.
Overrides:
go in class operator

updateDisplay

public void updateDisplay()
Displays the image in the parameter's window