|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
abc.parser.TuneChangeEvent
public class TuneChangeEvent
Event used when a state changed occured on a tune.
| Field Summary | |
|---|---|
static int |
TUNE_ADDED
The tune added event type. |
static int |
TUNE_REMOVED
The tune removed event type. |
static int |
TUNE_UPDATED
The tune updated event type. |
| Constructor Summary | |
|---|---|
TuneChangeEvent(java.lang.Object source,
int eventType,
Tune newTune,
java.lang.String newTuneNotation)
Creates a new event describing a tune change. |
|
| Method Summary | |
|---|---|
Tune |
getTune()
Returns the tune that has changed. |
java.lang.String |
getTuneNotation()
Returns the tune notation in ABC format. |
int |
getType()
Returns the type of this event. |
java.lang.String |
toString()
Returns a string representation of this event. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TUNE_UPDATED
public static final int TUNE_REMOVED
public static final int TUNE_ADDED
| Constructor Detail |
|---|
public TuneChangeEvent(java.lang.Object source,
int eventType,
Tune newTune,
java.lang.String newTuneNotation)
source - The source that generated this event.eventType - The type of this event.newTune - The tune that has changed (new, been removed or updated)newTuneNotation - The notation of the tune that has been changed, removed
or added.| Method Detail |
|---|
public java.lang.String getTuneNotation()
public int getType()
public Tune getTune()
public java.lang.String toString()
toString in class java.util.EventObject
|
abc4j API Specification | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||