|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcaas.midi.staticStaff.StupidSong
public class StupidSong
A simple Song implementation. Effectively, only the tempo is variable.
Constructor Summary | |
---|---|
StupidSong()
Constructor. |
Method Summary | |
---|---|
StaffProperty |
getCurrentProperty(java.lang.String propertyName)
Returns the current value for a given property in a Song. |
StaffProperty |
getDefaultProperty(java.lang.String propertyName)
Returns the default value for a given property in a Song. |
NoteVector |
getNextNote()
getNextNote returns the next note in the sqeuence of the Song. |
void |
reset()
Resets all current values for Song 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 Song to its default value. |
void |
setProperty(java.lang.String propertyName,
StaffProperty p)
Sets the current value for a given property in a Song. |
java.lang.String |
toString()
Overwrites Object's toString method to return the Song's Title. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StupidSong()
Method Detail |
---|
public NoteVector getNextNote()
getNextNote
in interface Staff
public StaffProperty getDefaultProperty(java.lang.String propertyName)
getDefaultProperty
in interface Staff
propertyName
- - a String holding the name of the property, which is the name of the class that extends StaffProperty that represents this property.
public StaffProperty getCurrentProperty(java.lang.String propertyName)
getCurrentProperty
in interface Staff
propertyName
- - a String holding the name of the property, which is the name of the class that extends StaffProperty that represents this property.
public void setProperty(java.lang.String propertyName, StaffProperty p)
setProperty
in interface Staff
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.public void resetProperty(java.lang.String propertyName)
resetProperty
in interface Staff
propertyName
- - a String holding the name of the property, which is the name of the class that extends StaffProperty that represents this property.public void reset()
reset
in interface Staff
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 |