API Review RT:17407 Canvas Node

Joe Andresen joseph.andresen at oracle.com
Thu Apr 26 18:27:16 PDT 2012

----- Original Message -----
From: zonski at googlemail.com
To: james.graham at oracle.com
Cc: openjfx-dev at openjdk.java.net
Sent: Thursday, April 26, 2012 5:38:17 PM GMT -08:00 US/Canada Pacific
Subject: Re: API Review RT:17407 Canvas Node

Would be good to see the prototype. I admit I'm confused on when/where this
Canvas is going to be appropriate and when it won't be. The below example
of drawing lines would have been one I'd not use the Canvas for based on
Joe's earlier general guideline on deciding between Canvas and Node graph
(i.e. it's not 'dynamic', apart from the fact it scrolls and zooms, but
then all the examples Joe indicated Canvas was not appropriate for did this

My evidence for this is that I have seen zooming and panning tiled images done very effectively using 
the scenegraph. Lines and such are a different beast, and Jim does bring up a great point that it costs less to draw stuff with canvas
than creating equivalent nodes. On the examples I gave that excluded canvas, the zooming and panning was one that I would be the least sure about
considering none of our test apps have attempted this yet. A good argument could be made that zooming and panning is in fact very dynamic.


More information about the openjfx-dev mailing list