bound SVG (original) (raw)
Tom Eugelink tbee at tbee.org
Tue Oct 30 10:35:26 PDT 2012
- Previous message: bound SVG
- Next message: How does JFX work get prioritised?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2012-10-30 16:10, Richard Bair wrote:
I hoped to be able to switch from a bar to a full rectangle by just using CSS, but I can't set the width in CSS. I could use two rectangles, but I'm also blocked on the fact that the color is set explicitly in the code (setFill), with two rectangles I need to set both fills, but I can't make one of then go away in the CSS - unless scary solitions with translate maybe. BTW, in my agenda (where I need to do something similar) I simply assign a style class and let that handle the presentation. Then I could simply have declared either color "transparent". I feel that the conference example is not using JavaFX's features to the max :-) That's correct, it was never meant to. The conference app is not a sample, it is an application. We cut corners left, right, and center because we had limited time and were trying to target a device (that wasn't demonstrated) which has no JIT. Ahem. In past years we got beat up for not releasing our demos. But of course we never did because they're usually a mess because, like any schedule driven app, things didn't go according to plan :-) As far as your use case, why not set the style directly on the node via setStyle? You can construct the string via some computation in that case. Richard
Thanks for your comments. Stephen would like to demo skinning with with the app, but that's not going to happen. It's more image than JavaFX from a design perspective. I was able to solve this problem using a Region, SVG and hardcoded sizes.
Tom
- Previous message: bound SVG
- Next message: How does JFX work get prioritised?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]