|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Staff
Staff represents a staff of musical score. It will be implemented by classes that represent music that may be played by MIDIPlayer.
Method Summary | |
---|---|
StaffProperty |
getCurrentProperty(java.lang.String propertyName)
Returns the current value for a given property in a Staff. |
StaffProperty |
getDefaultProperty(java.lang.String propertyName)
Returns the default value for a given property in a Staff. |
NoteVector |
getNextNote()
getNextNote returns the next NoteVector in the sqeuence of the Staff. |
void |
reset()
Resets all current values for Staff properties to their default values and resets the note-position to the first note. |
void |
resetProperty(java.lang.String propertyName)
Resets the current value for a given property in a Staff to its default value. |
void |
setProperty(java.lang.String propertyName,
StaffProperty p)
Sets the current value for a given property in a Staff. |
Method Detail |
---|
NoteVector getNextNote()
StaffProperty getDefaultProperty(java.lang.String propertyName)
propertyName
- - a String holding the name of the property, which is the name of the class that extends StaffProperty that represents this property.
StaffProperty getCurrentProperty(java.lang.String propertyName)
propertyName
- - a String holding the name of the property, which is the name of the class that extends StaffProperty that represents this property.
void setProperty(java.lang.String propertyName, StaffProperty p)
propertyName
- - a String holding the name of the property, which is the name of the class that extends StaffProperty that represents this property.p
- - the StaffProperty, which must be a class of type propertyName that is current for this song. null if this property is not implemented.void resetProperty(java.lang.String propertyName)
propertyName
- - a String holding the name of the property, which is the name of the class that extends StaffProperty that represents this property.void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |