sky.monome.event.analog
Class AnalogEvent


java.lang.Object

  extended by java.util.EventObject

      extended by sky.monome.event.GenericEvent<Analog>

          extended by sky.monome.event.analog.AnalogEvent

All Implemented Interfaces:
java.io.Serializable

public class AnalogEvent
extends GenericEvent<Analog>

Analog event's information object. Analog events are triggered by Analog objects.

Author:
PJ Skyman
See Also:
Serialized Form

Field Summary
protected  float value
          Value associated with this analog event.
 
Fields inherited from class sky.monome.event.GenericEvent
when
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AnalogEvent(long when, Analog source, float value)
          Constructs an analog event with the specified time, source and value.
 
Method Summary
 float getValue()
          Returns the value associated with this analog event.
 
Methods inherited from class sky.monome.event.GenericEvent
getSource2, getWhen
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value


protected final float value
Value associated with this analog event.

Constructor Detail

AnalogEvent


public AnalogEvent(long when,

                   Analog source,

                   float value)
Constructs an analog event with the specified time, source and value.

Parameters:
when - Time of this event, in milliseconds since the time zero in the Unix world.
source - Source of this event. Analog objects are sources for analog events.
value - Value associated with this analog event.
Method Detail

getValue


public float getValue()
Returns the value associated with this analog event.

Returns:
The value associated with this analog event.