Package org.jjazz.chordinspector.spi
Interface ChordViewer
public interface ChordViewer
A service provider to represent a chord symbol.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Get the visual component which represents the chord symbol.A one-line description of this viewer.getIcon()A 16x16 icon representing this viewer.getModel()booleanvoidsetContext(Song song, MidiMix midiMix, RhythmVoice rv) Provide optional context info to the viewer.voidsetEnabled(boolean b) voidsetModel(CLI_ChordSymbol cliCs) Represent the specified chord symbol.
-
Method Details
-
getComponent
JComponent getComponent()Get the visual component which represents the chord symbol.- Returns:
-
getDescription
String getDescription()A one-line description of this viewer.Used by UI to describe this viewer, e.g. as a tooltip.
- Returns:
-
getIcon
Icon getIcon()A 16x16 icon representing this viewer.Used by the framework to build a UI which lets the user select the active NotesViewer.
- Returns:
-
setContext
Provide optional context info to the viewer.- Parameters:
song- Can be null.midiMix- Can be null.rv- Can be null.
-
setModel
Represent the specified chord symbol.- Parameters:
cliCs-
-
getModel
CLI_ChordSymbol getModel() -
setEnabled
void setEnabled(boolean b) -
isEnabled
boolean isEnabled() -
cleanup
void cleanup()
-