Package org.jjazz.ss_editor.api
Class RpValueCopyBuffer
java.lang.Object
org.jjazz.ss_editor.api.RpValueCopyBuffer
Singleton class to manage RhythmParameter values copy/paste operations.
Values must come from the same RhythmParameter.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()get()Return the values in the buffer.static RpValueCopyBufferThe Rhythm of the RhythmParameter.The RhythmParameter for which the buffer stores values.intgetSize()booleanisEmpty()<E> voidput(Rhythm r, RhythmParameter<E> rp, List<E> values) Put the RhythmParameter and a copy of the values in the buffer.voidtoString()
-
Method Details
-
getInstance
-
put
Put the RhythmParameter and a copy of the values in the buffer.- Type Parameters:
E-- Parameters:
r-rp-values- RhythmParameter values
-
clear
public void clear() -
getSize
public int getSize()- Returns:
- int The nb of RhyhmParts in the buffer.
-
isEmpty
public boolean isEmpty() -
getRhythmParameter
The RhythmParameter for which the buffer stores values.- Returns:
- Null if buffer is empty
-
getRhythm
The Rhythm of the RhythmParameter.- Returns:
- Null if buffer is empty
-
get
Return the values in the buffer.- Returns:
- A list of copies of the values stored in the buffer
-
addChangeListener
-
removeChangeListener
-
toString
-