Package jmsltestsuite
Class TestRenderAllowed
java.lang.Object
jmsltestsuite.TestRenderAllowed
public class TestRenderAllowed
extends java.lang.Object
Problem reported by Jason Freeman
You should be able to load a Score from a file without it displaying in ScoreFrame.
You should be able to copy notes from it and paste into a displayed score and supress rendering of loaded score.
OLD BAD BEHAVIOR:
The frame would open and instead of showing firstScore it would show secondScore which was loaded from disk. This is because
Score was sharing a canvas and a newly loaded score calls ownCanvas() to gain rendering ownership.
Supressing ownCanvas was not enough. Calls to copy() would call render() which would result in the invisible score being rendered
NEW BEHAVIOR:
load() the score with false flag which does not permit ownCanvas on the first call to Score.build(). It also setRenderAllowed(false)
- Author:
- Nick Didkovsky, (c) 2005 Nick Didkovsky, nick@didkovsky.com
-
Constructor Summary
Constructors Constructor Description TestRenderAllowed()
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TestRenderAllowed
public TestRenderAllowed()
-
-
Method Details
-
main
public static void main(java.lang.String[] args)
-