Class GhostPhrasesModel
java.lang.Object
org.jjazz.pianoroll.api.GhostPhrasesModel
- All Implemented Interfaces:
PropertyChangeListener,EventListener,ChangeListener
The ghost phrases (one per channel, excepted for the edited channel) and their visible state.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcleanup()Get all the channels, visible or not, except the edited channel.intGet the channels for which ghost phrases are visible.Get the visible ghost phrases.voidvoidvoidsetEditedChannel(int editedChannel) Set the channel currently edited, which does not require a GhostPhrase.voidsetVisibleChannels(Collection<Integer> newVisibleChannels) Set which ghost phrases are visible.voidstateChanged(ChangeEvent evt)
-
Field Details
-
PROP_PHRASE_LIST
A phrase was added or removed or renamed or channel changed in the midimix.The visible channels might also have been changed as a result.
- See Also:
-
PROP_VISIBLE_PHRASE_CONTENT
One or more phrases content were musically changed for the visible phrases.- See Also:
-
PROP_VISIBLE_PHRASE_SELECTION
A phrase was made visible or hidden.OldValue=old visible channels set, newValue=new visible channels set.
- See Also:
-
-
Constructor Details
-
GhostPhrasesModel
Create the model.By default no ghost phrase is visible.
- Parameters:
midiMix-editedChannel- The channel currently edited, which does not require a GhostPhrase.
-
-
Method Details
-
getEditedChannel
public int getEditedChannel() -
setEditedChannel
public void setEditedChannel(int editedChannel) Set the channel currently edited, which does not require a GhostPhrase.- Parameters:
editedChannel-
-
getMidiMix
-
setVisibleChannels
Set which ghost phrases are visible.- Parameters:
newVisibleChannels- Can be null or empty to not show any ghost phrase.
-
getAllChannels
-
getVisibleChannels
-
getVisibleGhostPhrases
-
cleanup
public void cleanup() -
addPropertyChangeListener
-
removePropertyChangeListener
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-