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
Author:
Nick Didkovsky , copyright 2000 Nick Didkovsky
  • Field Details

  • Constructor Details

    • ScoreControlPanel

      public ScoreControlPanel​(Score score)
  • Method Details

    • getMyScoreControlPanelIndex

      public int getMyScoreControlPanelIndex()
    • setMax

      public void setMax​(int max)
    • addZoomListener

      public void addZoomListener​(ZoomListener zl)
    • handleZoom

      public void handleZoom()
    • setZoom

      public void setZoom​(double z)
    • notifyScoreLayout

      public void notifyScoreLayout​(Score score, int startingMeasure, int numMeasuresInLayout)
      Specified by:
      notifyScoreLayout in interface ScoreLayoutListener
    • handleMeasure

      public void handleMeasure()
    • setMeasureBar

      public void setMeasureBar​(int measureNumber)
    • notifyScrollbarValueChanged

      public void notifyScrollbarValueChanged​(PVScrollbar jsb)
      Specified by:
      notifyScrollbarValueChanged in interface PVScrollbarListener
    • notifySectionUpdate

      public void notifySectionUpdate​(ScoreSection section)
    • getCurrentSection

      public ScoreSection getCurrentSection()
    • setNoteFlash

      public void setNoteFlash​(boolean f)
    • itemStateChanged

      public void itemStateChanged​(java.awt.event.ItemEvent e)
      Specified by:
      itemStateChanged in interface java.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 interface java.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

      public double play​(double time, Composable parent)
      Result of collection finishing
      Specified by:
      play in interface Playable
      Returns:
      stopTime
    • 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 interface MeasureMetronomeListener
    • clearSectionChoice

      public void clearSectionChoice()
    • setSectionName

      public void setSectionName​(int sectionIndex, java.lang.String sectionName)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class PVPanelAdapter
    • main

      public static void main​(java.lang.String[] args)