vec_math
Class AbstractFunctionChange

java.lang.Object
  extended by vec_math.AbstractFunctionChange
All Implemented Interfaces:
FunctionChangeCaster

public abstract class AbstractFunctionChange
extends Object
implements FunctionChangeCaster

Class that supports casting to FunctionChangeListeners and can thus opt as a base class for Functions, Multidimensionals etc. It is abstract though it does not define any abstract method.


Field Summary
private  List<FunctionChangeListener> ear
          The list of registered listeners.
 
Constructor Summary
protected AbstractFunctionChange()
          Chain.
 
Method Summary
 void addFunctionChangeListener(FunctionChangeListener ff)
          Adds a new listener to the notification list.
protected  boolean notifyListeners(FunctionChangeEvent fce)
          Notifies registered listeners.
 void removeFunctionChangeListener(FunctionChangeListener ff)
          Removes the listener from the notification list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ear

private List<FunctionChangeListener> ear
The list of registered listeners.

Constructor Detail

AbstractFunctionChange

protected AbstractFunctionChange()
Chain.

Method Detail

addFunctionChangeListener

public void addFunctionChangeListener(FunctionChangeListener ff)
Adds a new listener to the notification list.

Specified by:
addFunctionChangeListener in interface FunctionChangeCaster
See Also:
notifyListeners

removeFunctionChangeListener

public void removeFunctionChangeListener(FunctionChangeListener ff)
Removes the listener from the notification list.

Specified by:
removeFunctionChangeListener in interface FunctionChangeCaster
See Also:
notifyListeners

notifyListeners

protected boolean notifyListeners(FunctionChangeEvent fce)
Notifies registered listeners.

Returns:
True, if at least one listener was notified.