Previous  Next          Package

Class MIDICompose.TextMetaEvent

java.lang.Object
   |
   +----MIDICompose.MIDIObject
           |
           +----MIDICompose.MIDIEvent
                   |
                   +----MIDICompose.MetaEvent
                           |
                           +----MIDICompose.TextMetaEvent

public class TextMetaEvent
extends MetaEvent

You can create all Textbased-MetaEvents with TextMetaEvent.

Variable Index

 o COPYRIGHT
 o CUE_POINT
 o INSTRUMENT
 o LYRIC
 o MARKER
 o TEXT
 o TRACK_NAME

Constructor Index

 o TextMetaEvent(String)
Creates new TextMetaEvent with text.
 o TextMetaEvent(int, int, String)
Creates new TextMetaEvent with deltaTime, type and text.

Method Index

 o setText(String)
Sets text.
 o setType(int)
Sets type.
 o text()
Returns current text.
 o type()
Returns current type.

Constructors

 o TextMetaEvent
 public TextMetaEvent(String text)
Creates a new TEXT-typed TextMetaEvent.

Parameters:
text - any String.
 o TextMetaEvent
 public TextMetaEvent(int deltaTime,
                      int type,
                      String text)
Creates a new TextMetaEvent.

Parameters:
deltaTime - any int (>= 0).
type - one of the defined types (COPYRIGHT, TEXT, ...).
text - any String.

Methods

 o type
 public int type()
Returns the current type.

Returns:
one of the defined types (COPYRIGHT, TEXT, ...).
 o setType
 public void setType(int type)
Sets the type.

Parameters:
one of the defined types (COPYRIGHT, TEXT, ...).
 o text
 public String text()
Returns the current text.

Returns:
a String.
 o setText
 public void setText(String text)
Sets the text.

Parameters:
text - any String.

 Previous  Next          Package