Re: Canvas : 2 pixel thick line width

2015-04-01 Thread Damien Dudouit
Hello, I have found the following answer : http://stackoverflow.com/questions/27846659/how-to-draw-an-1-pixel-line-using-javafx-canvas *Imagine each pixel as a (small) rectangle (instead of a point). The integer coordinates are the boundaries between pixels; so a (horizontal or vertical) line

Canvas : 2 pixel thick line width

2015-04-01 Thread Damien Dudouit
Hello, I'm using a Canvas to display some content (mostly text with lines also for underline). I've just noticed something that is a big problem for me : with line-width=1 and no scaling, actual line-width on display takes 2 pixels. Canvas canvas = new Canvas(300, 300); GraphicsContext

Re: Media API question regarding metadata retrieval

2015-04-01 Thread Fabrizio Giudici
On Wed, 01 Apr 2015 22:50:44 +0200, Scott Palmer swpal...@gmail.com wrote: I seems like a decent compromise to defer to the native platform code that will ultimately be used to process the file anyway. It seems a little heavy, but the alternative is perhaps bloating the JavaFX API. It

How to tell if KEY_PRESSED comes with a corresponding KEY_TYPED?

2015-04-01 Thread Tomas Mikula
On character input, two events are fired: KEY_PRESSED and KEY_TYPED. When my control is interested in the characters, KEY_TYPED should be handled, because it contains the entered Unicode characters. In that case, however, I would also like to consume the corresponding KEY_PRESSED event, so that it

Media API question regarding metadata retrieval

2015-04-01 Thread Robert Krüger
Hi, I was a bit surprised that the metadata retrieval functionality of javafx.scene.media.Media is only usable in conjunction with a player, so if I want to retrieve the dimensions of a video file I have to instantiate a player and wait for it to reach ready state? That's how I read the javadoc.

Re: Media API question regarding metadata retrieval

2015-04-01 Thread David DeHaven
I was a bit surprised that the metadata retrieval functionality of javafx.scene.media.Media is only usable in conjunction with a player, so if I want to retrieve the dimensions of a video file I have to instantiate a player and wait for it to reach ready state? That's how I read the javadoc.

Re: Media API question regarding metadata retrieval

2015-04-01 Thread Scott Palmer
I seems like a decent compromise to defer to the native platform code that will ultimately be used to process the file anyway. It seems a little heavy, but the alternative is perhaps bloating the JavaFX API. It likely makes more sense to use the MediaInfo project with some JNA bindings (you can