false to prevent infinite loop.
- See Also:
- FetchArgumentsEvent, FetchArgumentsListener, TriggerNextActionEvent, TriggerNextActionListener
-
processing
- Flag to indicate whether processing is going on or not.
-
ImageProcessing()
-
-
addFetchArgumentsListener(FetchArgumentsListener)
- Adds a FetchArgumentsListener to the listener list.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a PropertyChangeListener to the listener list.
-
addTriggerNextActionListener(TriggerNextActionListener)
- Adds a TriggerNextActionListener to the listener list.
-
evaluate()
- Fires
FetchArgumentsEvent
and calls the startProcessing
method.
-
getAutoAction()
- Gets the autoAction flag.
-
getDebug()
- Gets the debug flag.
-
removeFetchArgumentsListener(FetchArgumentsListener)
- Removes a FetchArgumentsListener from the listener list.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes a PropertyChangeListener from the listener list.
-
removeTriggerNextActionListener(TriggerNextActionListener)
- Removes a TriggerNextActionListener from the listener list.
-
setAutoAction(boolean)
- Sets the autoAction flag.
-
setDebug(boolean)
- Sets the debug flag.
-
startProcessing()
- Abstract method for processing an image.
-
triggerAction()
- Initiates the image filtering action.
processing
protected boolean processing
- Flag to indicate whether processing is going on or not.
The default value is false.
ImageProcessing
public ImageProcessing()
triggerAction
public void triggerAction()
- Initiates the image filtering action.
Calls the
evaluate
method. After that a
TriggerNextActionEvent
is fired irrespective of the
return value from the startProcessing
method.
setAutoAction
public void setAutoAction(boolean autoAction)
- Sets the autoAction flag.
This is used to check whether to call the
evaluate
method whenever
input or control properties of a bean are modified. If the flag is true,
the evaluate
method is called. The default value is true.
The PropertyChangeEvent
event is fired if old and new values
are different.
- Parameters:
- autoAction - autoAction flag
getAutoAction
public boolean getAutoAction()
- Gets the autoAction flag.
- Returns:
- autoAction flag
setDebug
public void setDebug(boolean debug)
- Sets the debug flag.
Flag to indicate whether IllegalArgumentException should be thrown
if the input property is set to null( if null is an invalid input).
If the flag is true and the input property is set to null,
IllegalArgumentException is thrown else the null value is set as the
input property. The default value is false.
The
PropertyChangeEvent
event is fired if old and new values
are different.
- Parameters:
- debug - The debug flag
getDebug
public boolean getDebug()
- Gets the debug flag.
- Returns:
- debug flag
addTriggerNextActionListener
public synchronized void addTriggerNextActionListener(TriggerNextActionListener listener)
- Adds a TriggerNextActionListener to the listener list.
- Parameters:
- listener - TriggerNextActionListener to be added
- Throws: IllegalArgumentException
- if the passed value is null
- See Also:
- TriggerNextActionListener, removeTriggerNextActionListener
removeTriggerNextActionListener
public synchronized void removeTriggerNextActionListener(TriggerNextActionListener listener)
- Removes a TriggerNextActionListener from the listener list.
- Parameters:
- listener - TriggerNextActionListener to be removed
- Throws: IllegalArgumentException
- if the passed value is null
- See Also:
- TriggerNextActionListener, addTriggerNextActionListener
addFetchArgumentsListener
public synchronized void addFetchArgumentsListener(FetchArgumentsListener listener)
- Adds a FetchArgumentsListener to the listener list.
- Parameters:
- listener - FetchArgumentsListener to be added
- Throws: IllegalArgumentException
- if the passed value is null
- See Also:
- FetchArgumentsListener, removeFetchArgumentsListener
removeFetchArgumentsListener
public synchronized void removeFetchArgumentsListener(FetchArgumentsListener listener)
- Removes a FetchArgumentsListener from the listener list.
- Parameters:
- listener - FetchArgumentsListener to be removed
- Throws: IllegalArgumentException
- if the passed value is null
- See Also:
- FetchArgumentsListener, addFetchArgumentsListener
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a PropertyChangeListener to the listener list.
- Parameters:
- listener - PropertyChangeListener to be added
- Throws: IllegalArgumentException
- if the passed value is null
- See Also:
- PropertyChangeListener, removePropertyChangeListener
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
- Removes a PropertyChangeListener from the listener list.
- Parameters:
- listener - PropertyChangeListener to be removed
- Throws: IllegalArgumentException
- if the passed value is null
- See Also:
- PropertyChangeListener, addPropertyChangeListener
startProcessing
protected abstract void startProcessing()
- Abstract method for processing an image.
Called by the
triggerAction
method and implementation is provided
by the subclass. It should implement the processing algorithm and store the
processed image and the old processed image . It then compares the new result
with the old result. If they are different,the PropertyChangeEvent
is fired.
evaluate
protected void evaluate()
- Fires
FetchArgumentsEvent
and calls the startProcessing
method. This method causes FetchArgumentsEvent
to be fired.
This event is used for setting the input arguments(i.e. inputImage) of its
subclass. After firing this event, it calls the startProcessing
method (whose implementation is provided by its subclass).
All Packages Class Hierarchy This Package Previous Next Index