Package org.jjazz.rhythmdatabase.api
Class FavoriteRhythms
java.lang.Object
org.jjazz.rhythmdatabase.api.FavoriteRhythms
Store the favorite rhythms as preferences.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringoldValue=rhythm if removed, newValue=rhythm if added. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddRhythm(RhythmInfo ri) Add a favorite rhythm.booleancontains(RhythmInfo ri) static FavoriteRhythmsAll the favorite rhythms.The favorite rhythms for the specified TimeSignature.The favorite rhythms for the specified RhythmProvider.voidbooleanRemove a favorite rhythm.
-
Field Details
-
PROP_FAVORITE_RHYTHM
oldValue=rhythm if removed, newValue=rhythm if added.
-
-
Method Details
-
getInstance
-
addRhythm
Add a favorite rhythm.- Parameters:
ri-- Returns:
- True if added successfully (r was not already present).
-
removeRhythm
Remove a favorite rhythm.- Parameters:
ri-- Returns:
- True if removed successfully (r was present).
-
contains
-
getRhythms
All the favorite rhythms.- Returns:
-
getRhythms
The favorite rhythms for the specified RhythmProvider.- Parameters:
rp-- Returns:
-
getRhythms
The favorite rhythms for the specified TimeSignature.- Parameters:
ts-- Returns:
-
addPropertyListener
-
removePropertyListener
-