Package jmsltestsuite
Class BravuraMusicGlyphRendererTest
java.lang.Object
jmsltestsuite.BravuraMusicGlyphRendererTest
- All Implemented Interfaces:
MusicGlyphRendererProxyListener
public class BravuraMusicGlyphRendererTest extends java.lang.Object implements MusicGlyphRendererProxyListener
JMSL Score lets you add custom music glyph renderers, that might use a real music font for
example. Here we test two such renderers, one that uses Sonata music font for most glyphs, but
gives the priority to another renderer for microtonal accidentals (Accidentals font by Matthew
Hindson, see http://www.hindson.com.au/wordpress/free-fonts-available-for-download/
The order you add MusicGlyphRenderers to JMSL determines the priority. The first renderer to
successfully render a glyph returns true and stops the chain. If they all fall through or if none
exist, JMSL uses line drawing routines.
Test SonataMusicGlyphRenderer and AccidentalsMusicGlyphRenderer
-
Constructor Summary
Constructors Constructor Description BravuraMusicGlyphRendererTest()
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
void
notifyRenderMusicGlyph(java.lang.String msg)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BravuraMusicGlyphRendererTest
public BravuraMusicGlyphRendererTest()
-
-
Method Details
-
notifyRenderMusicGlyph
public void notifyRenderMusicGlyph(java.lang.String msg)- Specified by:
notifyRenderMusicGlyph
in interfaceMusicGlyphRendererProxyListener
-
main
public static void main(java.lang.String[] args)
-