com.anji.floatingeye
Class CompositeAffinityListener

java.lang.Object
  extended bycom.anji.floatingeye.CompositeAffinityListener
All Implemented Interfaces:
AffinityListener

public class CompositeAffinityListener
extends java.lang.Object
implements AffinityListener

CompositeAffinityListener


Constructor Summary
CompositeAffinityListener()
           
 
Method Summary
 void add(AffinityListener listener)
          add new listener
 void reset()
          reset affinity history
 java.lang.String toString()
           
 void updateAffinity(IntLocation2D aPos, double aValue)
          current affinity while eye is at position pos is value affinity should be between 0.0 and 1.0 inclusive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeAffinityListener

public CompositeAffinityListener()
Method Detail

add

public void add(AffinityListener listener)
add new listener

Parameters:
listener -

updateAffinity

public void updateAffinity(IntLocation2D aPos,
                           double aValue)
Description copied from interface: AffinityListener
current affinity while eye is at position pos is value affinity should be between 0.0 and 1.0 inclusive

Specified by:
updateAffinity in interface AffinityListener
Parameters:
aPos -
aValue -
See Also:
AffinityListener.updateAffinity(com.anji.imaging.IntLocation2D, double)

reset

public void reset()
Description copied from interface: AffinityListener
reset affinity history

Specified by:
reset in interface AffinityListener
See Also:
AffinityListener.reset()

toString

public java.lang.String toString()
See Also:
Object.toString()