org.opensourcephysics.displayejs
Class AbstractInteractionSource

java.lang.Object
  extended by org.opensourcephysics.displayejs.AbstractInteractionSource
All Implemented Interfaces:
InteractionSource
Direct Known Subclasses:
ElementSet

public abstract class AbstractInteractionSource
extends java.lang.Object
implements InteractionSource

A base abstract class for objects that need to implement InteractionSource


Constructor Summary
AbstractInteractionSource()
           
 
Method Summary
 void addListener(InteractionListener _listener)
          Adds the specified interaction listener to receive interaction events to any of its targets from this source
 void invokeActions(InteractionEvent _event)
          Invokes actions on all listeners with the prescribed event
 void removeAllListeners()
          Removes all the interaction listeners
 void removeListener(InteractionListener _listener)
          Removes the specified interaction listener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensourcephysics.displayejs.InteractionSource
isEnabled, isEnabled, setEnabled, setEnabled
 

Constructor Detail

AbstractInteractionSource

public AbstractInteractionSource()
Method Detail

addListener

public void addListener(InteractionListener _listener)
Description copied from interface: InteractionSource
Adds the specified interaction listener to receive interaction events to any of its targets from this source

Specified by:
addListener in interface InteractionSource
See Also:
InteractionListener

removeListener

public void removeListener(InteractionListener _listener)
Description copied from interface: InteractionSource
Removes the specified interaction listener

Specified by:
removeListener in interface InteractionSource
See Also:
InteractionListener

removeAllListeners

public void removeAllListeners()
Description copied from interface: InteractionSource
Removes all the interaction listeners

Specified by:
removeAllListeners in interface InteractionSource

invokeActions

public void invokeActions(InteractionEvent _event)
Description copied from interface: InteractionSource
Invokes actions on all listeners with the prescribed event

Specified by:
invokeActions in interface InteractionSource
See Also:
InteractionEvent