123 |
|
|
124 |
For safety of event handling, possibility to check if |
For safety of event handling, possibility to check if |
125 |
VobScene has changed, i.e. screen has updated, |
VobScene has changed, i.e. screen has updated, |
126 |
|
from previous animate or switchVS method |
127 |
is added into the animation layer. |
is added into the animation layer. |
128 |
For example if we need to wait until something draws |
For example if we need to wait until something draws |
129 |
on screen, all events before we have the correct |
on screen, all events before we have the correct |
246 |
VobScene getCurrentVS(); |
VobScene getCurrentVS(); |
247 |
|
|
248 |
|
|
249 |
/** Returns true if VobScene has changed since previous |
/** Returns true if there are pending methods that |
250 |
* <code>animate</code> or <code>switchVS</code> method, |
* create a new VobScene which has not yet been updated |
251 |
* i.e., screen has updated. |
* within window. The methods that create a new VobScene |
252 |
|
* are <code>animate</code> and <code>switchVS</code>. |
253 |
* <p> |
* <p> |
254 |
* Programming note: |
* Programming note: |
255 |
* In some situations when handling the events the programmer |
* In some situations when handling the events the programmer |
256 |
* needs to know whether the VobScene is new or the still the old one, |
* needs to know whether the VobScene is new or the still the old one, |
257 |
* e.g., when waiting the screen to update to move some new vob you |
* e.g., when waiting to move some new vob you |
258 |
* you need to pass all events trough before the screen has updated. |
* you need to pass all events trough before the screen has updated. |
259 |
*/ |
*/ |
260 |
boolean hasVSchanged(); |
boolean hasPendingVS(); |
261 |
} |
} |
262 |
|
|
263 |
|
|