|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A set of chords for a song. Most songs will only have one ChordSet, but some may have multiple, especially if there are alternate tunes.
Field Summary | |
static String |
KEYSIGNATURETYPE_FIELD
Name of key signature type field. |
static String |
NAME_FIELD
Name of chord set name field. |
Method Summary | |
ChordSetKey |
addAlternateKey(Note note,
UndoableEditListener undoListener)
Add a new alternate key to the chord set. |
int |
getAlternateKeyCount()
Get the number of alternate keys |
Locale |
getLocale()
Get the locale for this ChordSet. |
ChordSetKey |
getNativeKey()
Get the ChordSetKey representing the native key signature. |
ChordSetKey |
getNextAlternateKey(ChordSetKey reference)
Get the next alternate key following reference. |
ChordSetKey |
getPreviousAlternateKey(ChordSetKey reference)
Get the previous alternate key preceding reference. |
String |
getSerializableID()
Get a string ID that can be used to serialize references to this ChordSet. |
void |
removeAlternateKey(ChordSetKey alternateKey,
UndoableEditListener undoListener)
Remove the given alternate key from the chord set. |
Methods inherited from interface com.virtuosotechnologies.asaph.model.SongMember |
getSong, isDefunct |
Methods inherited from interface com.virtuosotechnologies.asaph.model.FieldContainer |
addBinaryField, addBinaryListField, addStringField, addStringListField, getFieldCount, getNamedField, getNextField, getNthField, getPreviousField, removeField |
Field Detail |
public static final String NAME_FIELD
public static final String KEYSIGNATURETYPE_FIELD
Method Detail |
public Locale getLocale()
public ChordSetKey getNativeKey()
public int getAlternateKeyCount()
public ChordSetKey getNextAlternateKey(ChordSetKey reference)
reference
- reference ChordSetKey
IllegalArgumentException
- reference is not a memberpublic ChordSetKey getPreviousAlternateKey(ChordSetKey reference)
reference
- reference ChordSetKey
IllegalArgumentException
- reference is not a memberpublic String getSerializableID()
public ChordSetKey addAlternateKey(Note note, UndoableEditListener undoListener)
note
- key noteundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
NullPointerException
- note was nullpublic void removeAlternateKey(ChordSetKey alternateKey, UndoableEditListener undoListener)
alternateKey
- ChordSetKey to removeundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
IllegalArgumentException
- alternateKey is not present
NullPointerException
- alternateKey was null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |