bound SVG

Tom Eugelink tbee at
Sat Oct 27 07:57:05 PDT 2012

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?


More information about the openjfx-dev mailing list