How to force animation
Tom Schindl
tom.schindl at bestsolution.at
Thu Dec 20 12:12:12 UTC 2018
I think you need to tell the system that the nodes content is dirty, not?
Tom
On 20.12.18 12:52, Giuseppe Barbieri wrote:
> It seems it doesnt work, I keep getting updates only when I enter/exit the
> button on top: https://i.imgur.com/aV9NGqi.png
>
> To better clarify: I'd like an animation that would call
> `ViewPainter.doPaint()` every pulse
>
> Any idea how I may achieve this?
>
> PS: in case you may want to try it personally, projects are available at:
> - https://github.com/elect86/openjdk-jfx.git
> - https://github.com/jvm-graphics-labs/HelloFX.git (hello gears.kt)
>
> Il giorno mer 19 dic 2018 alle ore 13:43 Zsolt Kúti <la.tinca at gmail.com> ha
> scritto:
>
>> Create animation by extending AnimationTimer and call its start() method
>> to begin animation.
>>
>> On Wed, Dec 19, 2018 at 11:18 AM Giuseppe Barbieri <elect86 at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I'm injecting external rendering code and I'd like to know how I may force
>>> animation without having to declare some dummy objects, such as a Circle
>>> combined with a TranslateTransition
>>>
>>> I tried to modify the `QuantumToolkit.postPulse()` to force calling
>>>
>>> Application.invokeLater(pulseRunnable);
>>>
>>>
>>> but for some reasons it doesnt work
>>>
>>>
>>> Thanks in advance,
>>> Giuseppe
>>>
>>
--
Tom Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7. A-6020 Innsbruck
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
More information about the openjfx-discuss
mailing list