On 18-2-2015 08:34, Tomas Mikula wrote:
Hope this helps.
I'll give it a try! Maybe it will solve some of the TBEERNOT (TODO) tags
further down the code.
Tom
Finally, it would be nice to get information about the actual screen DPI.
In my tests Screen.getDpi always returns 96, regardless of what it actually
is...
You can reflectively access Screen.getPixelScale() to learn if you're on
Retina. Of course, don't expect to swap out the JRE for a newer
Hi Jim,
interesting read. I guess I learned more about the topic than I can
help. Also found this resource interesting:
http://kynosarges.de/GuiDpiScaling.html
Some thoughts. Obviously it is less desirable to require every
application to do their own scaling. I can't imagine that this would
My usecase is not about retina or not. It is about showing a report
result in actual size which means I need to scale it depending on the
screen DPI.
Current workaround is this...
-Dcom.sun.javafx.screenDPI=109
...but I can't really advertise this to users.
Werner
On 18.02.2015 12:23, Mike
On 18-2-2015 08:34, Tomas Mikula wrote:
What I think should be done is, instead of trying to hack around Pane,
create class NeedlePane that extends Region and overrides
layoutChildren. It would create its children in the constructor (or
take them as constructor parameters), add them to its
I like the improvements to the code. Thanks!
Tom
On 18-2-2015 21:49, Tomas Mikula wrote:
So back to your original question:
Basically I would like to be informed when the styling of a node has been
applied or changed. Is there some place that can provide this information?
Turns out you don't actually need this information ;)
Indeed.
Hmm, my view is rather reverse to yours:
The fact that the implementation of layout is best solved with
inheritance is a sign that JavaFX does _not_ aim enough at doing
things via composition.
Tomas
On Wed, Feb 18, 2015 at 4:37 PM, Tom Eugelink t...@tbee.org wrote:
On 18-2-2015 21:49, Tomas
So back to your original question:
Basically I would like to be informed when the styling of a node has been
applied or changed. Is there some place that can provide this information?
Turns out you don't actually need this information ;)
Regards,
Tomas
On Wed, Feb 18, 2015 at 3:20 PM, Tom
(after a night's sleep)
Well... I was trying to do things by composition and it did not work. My
implemention worked, but it had to depend on a layoutChildren, only at the top
level (Skin), which was not fine grained enough.
Interesting is that for JFXtras Agenda I used the inherit pattern,
Hi Kevin, Vadim,
Please review the fix:
https://javafx-jira.kenai.com/browse/RT-37371
http://cr.openjdk.java.net/~ant/RT-37371/webrev.0
Thanks,
Anton.
11 matches
Mail list logo