Package jmslexamples
Class ProportionalNotation
java.lang.Object
jmslexamples.ProportionalNotation
- All Implemented Interfaces:
- ScoreCanvasListener
public class ProportionalNotation extends java.lang.Object implements ScoreCanvasListener
Use stemless notes to generate a demo of proportional notation. Use a series of 64th notes and
 make some of them hidden rests. Make all notes stemless.
 
 Draw on top of a score using callback to create a light gray grid
- Author:
- Nick Didkovsky, (c) 2009 Nick Didkovsky, nick@didkovsky.com
- 
Field SummaryFields inherited from interface com.softsynth.jmsl.score.ScoreCanvasListenercopyright
- 
Constructor SummaryConstructors Constructor Description ProportionalNotation()
- 
Method SummaryModifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent arg0)static voidmain(java.lang.String[] args)voidscoreCanvasClicked(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse is clicked and releasedvoidscoreCanvasDisplayedImageReady(Score score, ScoreCanvas canvas, java.awt.Image displayedImage)Called immediately before ScoreCanvas draws the completed offscreen display image to the canvas's graphics context.voidscoreCanvasDragged(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse is dragged (moved while mousedown)voidscoreCanvasKeyReleased(ScoreCanvas canvas, java.awt.event.KeyEvent keyEvent)voidscoreCanvasKeyTyped(ScoreCanvas canvas, java.awt.event.KeyEvent keyEvent)voidscoreCanvasPressed(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse button is pressed downvoidscoreCanvasReady(ScoreCanvas canvas)voidscoreCanvasRectangleSelected(ScoreCanvas canvas, java.awt.Point p1, java.awt.Point p2)executes when mouse is was dragged and released with no modifiers other than BUTTON1_MASK or SHIFT_MASKvoidscoreCanvasReleased(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse button is releasedvoidstart()Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ProportionalNotationpublic ProportionalNotation()
 
- 
- 
Method Details- 
mainpublic static void main(java.lang.String[] args)
- 
startpublic void start()
- 
scoreCanvasClickedDescription copied from interface:ScoreCanvasListenerexecutes when mouse is clicked and released- Specified by:
- scoreCanvasClickedin interface- ScoreCanvasListener
 
- 
scoreCanvasRectangleSelectedDescription copied from interface:ScoreCanvasListenerexecutes when mouse is was dragged and released with no modifiers other than BUTTON1_MASK or SHIFT_MASK- Specified by:
- scoreCanvasRectangleSelectedin interface- ScoreCanvasListener
 
- 
scoreCanvasKeyTyped- Specified by:
- scoreCanvasKeyTypedin interface- ScoreCanvasListener
 
- 
scoreCanvasKeyReleased- Specified by:
- scoreCanvasKeyReleasedin interface- ScoreCanvasListener
 
- 
scoreCanvasDisplayedImageReadypublic void scoreCanvasDisplayedImageReady(Score score, ScoreCanvas canvas, java.awt.Image displayedImage)Called immediately before ScoreCanvas draws the completed offscreen display image to the canvas's graphics context. You may add drawing on top of the score by drawing in this method- Specified by:
- scoreCanvasDisplayedImageReadyin interface- ScoreCanvasListener
 
- 
scoreCanvasReady- Specified by:
- scoreCanvasReadyin interface- ScoreCanvasListener
 
- 
scoreCanvasDraggedDescription copied from interface:ScoreCanvasListenerexecutes when mouse is dragged (moved while mousedown)- Specified by:
- scoreCanvasDraggedin interface- ScoreCanvasListener
 
- 
scoreCanvasReleasedDescription copied from interface:ScoreCanvasListenerexecutes when mouse button is released- Specified by:
- scoreCanvasReleasedin interface- ScoreCanvasListener
 
- 
scoreCanvasPressedDescription copied from interface:ScoreCanvasListenerexecutes when mouse button is pressed down- Specified by:
- scoreCanvasPressedin interface- ScoreCanvasListener
 
- 
actionPerformedpublic void actionPerformed(java.awt.event.ActionEvent arg0)
 
-