com.softsynth.jmsl.score
Class ScoreEditPanel
java.lang.Object
com.softsynth.jmsl.view.PVPanelAdapter
com.softsynth.jmsl.score.ScoreEditPanel
- All Implemented Interfaces:
- PVComponent, PVPanel, EditStateProvider, NumTracksPerStaffChangedListener, java.awt.event.ItemListener, java.util.EventListener
public class ScoreEditPanel
- extends PVPanelAdapter
- implements java.awt.event.ItemListener, EditStateProvider, NumTracksPerStaffChangedListener
ScoreEditPanel
GUI Interface for edit functions
JMSL Notation Project
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky
Field Summary |
static java.lang.String |
copyright
|
Methods inherited from class com.softsynth.jmsl.view.PVPanelAdapter |
add, add, addKeyListener, equals, getBackground, getBounds, getComponent, getFont, getParent, hashCode, isEnabled, remove, removeAll, removeKeyListener, setBackground, setEnabled, setFont, setLayout, setLocation, setVisible, toString, validate |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
copyright
public static final java.lang.String copyright
- See Also:
- Constant Field Values
ScoreEditPanel
public ScoreEditPanel(Score score)
addEditStateListener
public void addEditStateListener(EditStateListener editStateListener)
getEditMode
public int getEditMode()
- Specified by:
getEditMode
in interface EditStateProvider
getDuration
public int getDuration()
- Specified by:
getDuration
in interface EditStateProvider
- Returns:
- index of selected duration 0..7
getTuplet
public int getTuplet()
- Specified by:
getTuplet
in interface EditStateProvider
- Returns:
- selected tuplet value
getAccidental
public int getAccidental()
- Specified by:
getAccidental
in interface EditStateProvider
- Returns:
- selected accidental value: Note.ACC_NONE, Note.ACC_SHARP, Note.ACC_FLAT
getDots
public int getDots()
- Specified by:
getDots
in interface EditStateProvider
- Returns:
- selected number of dots 0, 1, or 2
getNoteElseRest
public boolean getNoteElseRest()
- Specified by:
getNoteElseRest
in interface EditStateProvider
- Returns:
- true if note selected, false if rest selected
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener
main
public static void main(java.lang.String[] args)
getActiveTrackIndex
public int getActiveTrackIndex()
- Specified by:
getActiveTrackIndex
in interface EditStateProvider
- Returns:
- Returns the activeTrackIndex.
notifyNumTracksPerStaff
public void notifyNumTracksPerStaff(Score score)
- notified by Score when numtracks per staff changes
- Specified by:
notifyNumTracksPerStaff
in interface NumTracksPerStaffChangedListener