|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.confusionists.mjdjApi.midi.MessageWrapper
public class MessageWrapper
MessageWrapper class for MidiMessage. See ShortMessageWrapper.
It can also hold a String (keystrokes) which represents keystrokes to be typed into the active window.
It holds either keystrokes or a MIDI message, but not both.
Client classes should use one of the factory methods to get an instance.
| Field Summary | |
|---|---|
java.lang.Object |
userData
used by Morphs to add functionality without subclassing |
| Method Summary | |
|---|---|
ShortMessageWrapper |
getAsShortMessageWrapper()
Convenience method. |
static int |
getInt(byte value)
good to have around: see the MidiMessage documentation for the meaning of this |
java.lang.String |
getKeystrokes()
|
javax.sound.midi.MidiMessage |
getMessage()
|
static MessageWrapper |
newInstance(byte[] bytes)
Static Factory Method |
static MessageWrapper |
newInstance(ChannelCc channelCc,
int data2)
Static Factory Method |
static MessageWrapper |
newInstance(javax.sound.midi.MidiMessage message)
Static Factory Method |
static MessageWrapper |
newInstance(java.lang.String keystrokes)
Static Factory Method |
void |
setMessage(javax.sound.midi.MidiMessage message)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Object userData
| Method Detail |
|---|
public static MessageWrapper newInstance(javax.sound.midi.MidiMessage message)
public static MessageWrapper newInstance(byte[] bytes)
public static MessageWrapper newInstance(java.lang.String keystrokes)
public static MessageWrapper newInstance(ChannelCc channelCc,
int data2)
public java.lang.String getKeystrokes()
public void setMessage(javax.sound.midi.MidiMessage message)
public javax.sound.midi.MidiMessage getMessage()
public static int getInt(byte value)
public ShortMessageWrapper getAsShortMessageWrapper()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||