Package org.jjazz.rhythmdatabase.api
Class FavoriteRhythms
java.lang.Object
org.jjazz.rhythmdatabase.api.FavoriteRhythms
Store the favorite rhythms as preferences.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
oldValue=rhythm if removed, newValue=rhythm if added. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addRhythm
(RhythmInfo ri) Add a favorite rhythm.boolean
contains
(RhythmInfo ri) static FavoriteRhythms
All the favorite rhythms.The favorite rhythms for the specified TimeSignature.The favorite rhythms for the specified RhythmProvider.void
boolean
Remove 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
-