bound SVG

Scott Palmer swpalmer at gmail.com
Sat Oct 27 09:07:56 PDT 2012


-fx-scale-shape

Scott

On 2012-10-27, at 10:57 AM, Tom Eugelink <tbee at tbee.org> wrote:

> I'm trying to modify the JavaFX conference demo application in order to demonstrate CSS styling on Wednesday's JFall. I find that a lot of the stuff is hardcoded and not easily skinnable, so I'm trying to make some pinpoint changes in order to improve this.
> 
> Since my attempt is to make it more "metro" (simple straight colored rectangles is about all that my design skills can handle) I'm trying to move some of the drawing instructions out into CSS using SVG. However, some of the nodes have dynamic dimensions (width or height), and I would like to have my SVG instructions scale with that.
> 
> So instead of: M0,0 L10,0 L10,10 L0,10 L0,0 Z
> 
> I would like to use something like: M0,0 L{width},0 L{width},10 L0,10 L0,0 Z
> 
> Is this possible? Or only by using some kind of template engine and reloading the CSS?
> 
> Tom
> 


More information about the openjfx-dev mailing list