Package com.softsynth.jmsl.score
Class ScoreControlPanel
java.lang.Object
com.softsynth.jmsl.view.PVPanelAdapter
com.softsynth.jmsl.score.ScoreControlPanel
- All Implemented Interfaces:
PVComponent
,PVPanel
,PVScrollbarListener
,Playable
,MeasureMetronomeListener
,ScoreLayoutListener
,java.awt.event.ActionListener
,java.awt.event.ItemListener
,java.util.EventListener
public class ScoreControlPanel extends PVPanelAdapter implements Playable, PVScrollbarListener, java.awt.event.ActionListener, java.awt.event.ItemListener, MeasureMetronomeListener, ScoreLayoutListener
ScoreControlPanel
Control zoom and measure #
JMSL Notation Project
Control zoom and measure #
JMSL Notation Project
- Author:
- Nick Didkovsky , copyright 2000 Nick Didkovsky
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
copyright
-
Constructor Summary
Constructors Constructor Description ScoreControlPanel(Score score)
-
Method Summary
Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
addZoomListener(ZoomListener zl)
void
clearSectionChoice()
void
finish()
calls finishAll() on scorecollection, sets gui buttonsScoreSection
getCurrentSection()
boolean
getLoopState()
int
getMyScoreControlPanelIndex()
void
handleMeasure()
void
handleZoom()
void
itemStateChanged(java.awt.event.ItemEvent e)
void
launch(double time, int startMeasure, int endMeasure, boolean useButton)
Launch the score at specified time, starting and ending at specified measuresvoid
launchSection(double playTime, boolean useButton)
launch current section.static void
main(java.lang.String[] args)
void
notifyMeasureBeat(int measure, int beat, int beatsInMeasure)
Display measure and beat in Label, notified by Score's Measure's MeasureMetronomevoid
notifyScoreLayout(Score score, int startingMeasure, int numMeasuresInLayout)
void
notifyScrollbarValueChanged(PVScrollbar jsb)
void
notifySectionUpdate(ScoreSection section)
double
play(double time, Composable parent)
Result of collection finishingvoid
setLoop(boolean flag)
Set internal flag to loop playback or not.void
setMax(int max)
void
setMeasureBar(int measureNumber)
void
setNoteFlash(boolean f)
void
setSectionName(int sectionIndex, java.lang.String sectionName)
void
setZoom(double z)
java.lang.String
toString()
Methods inherited from class com.softsynth.jmsl.view.PVPanelAdapter
add, add, addKeyListener, equals, getBackground, getBounds, getComponent, getFont, getLocation, getParent, hashCode, isEnabled, remove, removeAll, removeKeyListener, setBackground, setEnabled, setFont, setLayout, setLocation, setVisible, validate
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
copyright
public static final java.lang.String copyright- See Also:
- Constant Field Values
-
-
Constructor Details
-
ScoreControlPanel
-
-
Method Details
-
getMyScoreControlPanelIndex
public int getMyScoreControlPanelIndex() -
setMax
public void setMax(int max) -
addZoomListener
-
handleZoom
public void handleZoom() -
setZoom
public void setZoom(double z) -
notifyScoreLayout
- Specified by:
notifyScoreLayout
in interfaceScoreLayoutListener
-
handleMeasure
public void handleMeasure() -
setMeasureBar
public void setMeasureBar(int measureNumber) -
notifyScrollbarValueChanged
- Specified by:
notifyScrollbarValueChanged
in interfacePVScrollbarListener
-
notifySectionUpdate
-
getCurrentSection
-
setNoteFlash
public void setNoteFlash(boolean f) -
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
-
getLoopState
public boolean getLoopState() -
launch
public void launch(double time, int startMeasure, int endMeasure, boolean useButton)Launch the score at specified time, starting and ending at specified measures -
launchSection
public void launchSection(double playTime, boolean useButton)launch current section. Convenience call to launch(playTime, getCurrentSection().getStart(),getCurrentSection().getEnd(), useButton ) -
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
setLoop
public void setLoop(boolean flag)Set internal flag to loop playback or not. Does not update checkbox -
finish
public void finish()calls finishAll() on scorecollection, sets gui buttons -
play
Result of collection finishing -
notifyMeasureBeat
public void notifyMeasureBeat(int measure, int beat, int beatsInMeasure)Display measure and beat in Label, notified by Score's Measure's MeasureMetronome- Specified by:
notifyMeasureBeat
in interfaceMeasureMetronomeListener
-
clearSectionChoice
public void clearSectionChoice() -
setSectionName
public void setSectionName(int sectionIndex, java.lang.String sectionName) -
toString
public java.lang.String toString()- Overrides:
toString
in classPVPanelAdapter
-
main
public static void main(java.lang.String[] args)
-