com.softsynth.jmsl.score.view
Class ScoreMusicShapeEditor

java.lang.Object
  extended by com.softsynth.jmsl.view.PVPanelAdapter
      extended by com.softsynth.jmsl.view.MusicShapeEditor
          extended by com.softsynth.jmsl.score.view.ScoreMusicShapeEditor
All Implemented Interfaces:
PVComponent, PVPanel, PlayLurker, java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener

public class ScoreMusicShapeEditor
extends MusicShapeEditor

Subclass of MusicShapeEditor that can pull in selected Notes from a Score and transcribe the MusicShape back out to the score

Author:
Nick Didkovsky, (c) 2006 Nick Didkovsky, all rights reserved

Field Summary
 
Fields inherited from class com.softsynth.jmsl.view.MusicShapeEditor
DRAW_EDIT, RANGE_SELECT, SAFE, ZOOMING
 
Constructor Summary
ScoreMusicShapeEditor()
           
ScoreMusicShapeEditor(java.lang.String title)
           
ScoreMusicShapeEditor(java.lang.String title, int w, int h)
           
ScoreMusicShapeEditor(java.lang.String title, int w, int h, java.awt.Color color)
           
ScoreMusicShapeEditor(java.lang.String title, int w, int h, java.awt.Color color, java.awt.Font font, double zoom, boolean lockToInt, boolean showGrid)
           
 
Method Summary
 MusicShape addMusicShapeFromSelection(boolean warnIfEmpty)
           
 void buildUserPanel()
          override this in subclass.
 Score getScore()
           
static void main(java.lang.String[] args)
           
 void setScore(Score score)
           
 
Methods inherited from class com.softsynth.jmsl.view.MusicShapeEditor
actionPerformed, addMusicShape, addMusicShapeEditorOperator, bufferSize, clear, clearBuffer, elementEditedOrYChanged, fromBuffer, getCeiling, getDimension, getEditMode, getFloor, getFont, getInvert, getLockedToInt, getMusicShape, getRangeEndIndex, getRangeStartIndex, getUserPanel, getV1, getV2, getV3, itemStateChanged, notifyPlayLurker, refresh, removeMusicShapeRangeOperator, repackParent, repaint, reset, setFont, setRange, setZoom, showMessage, toBuffer, toBuffer, updateMinMaxLabels
 
Methods inherited from class com.softsynth.jmsl.view.PVPanelAdapter
add, add, addKeyListener, equals, getBackground, getBounds, getComponent, getParent, hashCode, isEnabled, remove, removeAll, removeKeyListener, setBackground, setEnabled, setLayout, setLocation, setVisible, toString, validate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScoreMusicShapeEditor

public ScoreMusicShapeEditor(java.lang.String title,
                             int w,
                             int h,
                             java.awt.Color color,
                             java.awt.Font font,
                             double zoom,
                             boolean lockToInt,
                             boolean showGrid)

ScoreMusicShapeEditor

public ScoreMusicShapeEditor(java.lang.String title,
                             int w,
                             int h,
                             java.awt.Color color)

ScoreMusicShapeEditor

public ScoreMusicShapeEditor(java.lang.String title,
                             int w,
                             int h)

ScoreMusicShapeEditor

public ScoreMusicShapeEditor(java.lang.String title)

ScoreMusicShapeEditor

public ScoreMusicShapeEditor()
Method Detail

addMusicShapeFromSelection

public MusicShape addMusicShapeFromSelection(boolean warnIfEmpty)

buildUserPanel

public void buildUserPanel()
Description copied from class: MusicShapeEditor
override this in subclass. getUserPanel() is valid by the time this is called, and is an empty PVPanel

Overrides:
buildUserPanel in class MusicShapeEditor

getScore

public Score getScore()

setScore

public void setScore(Score score)

main

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