Using the Canvas node, when I stroke or fill a path after I have called the translate(double,double) method on the GraphicsContext, the path is drawn way out of place. In the attached example it seems that the path is moved three times as much as I specified in the translate method. Stroking text however, seems to paint the text at exactly the spot I expect it. (This behaviour was observed on Linux and Windows 64-Bit).
I wasn't sure if I encountered a JavaFX bug and thus asked this question on stackoverflow: http://stackoverflow.com/questions/13236523/unexpected-behaviour-of-javafx-graphicscontext-translate. Since nobody seems to see any obvious flaw in my code, I would consider this a bug.
Find attached a small Netbeans project which reproduces the problem.
I wasn't sure if I encountered a JavaFX bug and thus asked this question on stackoverflow: http://stackoverflow.com/questions/13236523/unexpected-behaviour-of-javafx-graphicscontext-translate. Since nobody seems to see any obvious flaw in my code, I would consider this a bug.
Find attached a small Netbeans project which reproduces the problem.