jaron.components
Interface SignalListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
ActuatorXY, Axis, Joystick, RadioButton, Servo, Signal, Slider, TwoWaySwitch

public interface SignalListener
extends java.util.EventListener

The SignalListener interface forces its implementing classes to implement all the methods that are used by the EventListener mechanism.

Since:
1.0
Version:
1.2
Author:
jarontec gmail com

Method Summary
 void setValue(double value)
          Sets the signal's value.
 void signalChanged(SignalEvent event)
          Notifies the listener about a signal change event that occurred in the EventListener mechanism.
 

Method Detail

signalChanged

void signalChanged(SignalEvent event)
Notifies the listener about a signal change event that occurred in the EventListener mechanism.

Parameters:
event - the event that occurred

setValue

void setValue(double value)
Sets the signal's value. This method is used by an event notifier that notifies all its listeners about a change of the signal value.
The method can also be used outside the EventListener mechanism to set the signal's value.

Parameters:
value - the notifier's signal value that has changed or just the new signal value