gr.teicrete.mta.midi.eobody.event
Class KeyPressureEvent

java.lang.Object
  extended by java.util.EventObject
      extended by gr.teicrete.mta.midi.eobody.event.EobodyEvent
          extended by gr.teicrete.mta.midi.eobody.event.KeyPressureEvent
All Implemented Interfaces:
java.io.Serializable

public class KeyPressureEvent
extends EobodyEvent

The Key Pressure Event class

Author:
zavi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
KeyPressureEvent(java.lang.Object evtSource, javax.sound.midi.MidiMessage midiMessage)
          The constructor for KeyPressureEvent
 
Method Summary
 int getKey()
          Method for obtaining the key number
 int getPressure()
          Method for obtaining the pressure
 
Methods inherited from class gr.teicrete.mta.midi.eobody.event.EobodyEvent
getChannel
 
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
 

Constructor Detail

KeyPressureEvent

public KeyPressureEvent(java.lang.Object evtSource,
                        javax.sound.midi.MidiMessage midiMessage)
The constructor for KeyPressureEvent

Parameters:
evtSource - The source on which the event occured
midiMessage - The MIDI message received
Method Detail

getKey

public int getKey()
Method for obtaining the key number

Returns:
The Key Pressure key number

getPressure

public int getPressure()
Method for obtaining the pressure

Returns:
The Key Pressure pressure