hg: openjfx/8/graphics/rt: 2 new changesets

2013-06-07 Thread hang . vo
Changeset: 53248a630305
Author:Martin Sladecek martin.slade...@oracle.com
Date:  2013-06-07 08:36 +0200
URL:   http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/53248a630305

Unified reports of null reference in SelectBinding on info level.

! javafx-beans/src/com/sun/javafx/binding/SelectBinding.java

Changeset: b4fa1e830511
Author:Martin Sladecek martin.slade...@oracle.com
Date:  2013-06-07 08:36 +0200
URL:   http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/b4fa1e830511

Automated merge with file:///home/martin/work/jfx-80-sync/rt




FXML version number

2013-06-07 Thread Milan Kubec
Hello,
I have implemented simple versioning for FXML documents in FXMLLoader, but 
without support in tools it won't be very useful. I have agreed with NetBeans 
and Scene Builder folks that they will include support for versioning too. 
Support means that they will produce document with two XML namespaces - one 
defines version of fx: prefixed elements and attributes (xmlns:fx; it's already 
there, just the version is appended) and the other of actual JavaFX API used to 
produce document (xmlns; default, no prefix). The first will be checked, 
because wrong version can cause failure. The latter is only informational, no 
strict checking of version is possible, but tools can suggest to upgrade 
runtime, translate document etc.

JavaFX API version is stored in System Properties as javafx.version. The open 
question is still where and how to store fxml version in code. I think that we 
could have also property for this purpose, e.g. fxml.version in System 
Properties. So far it's part of FXMLLoader API, which is probably not very 
fortunate. What do you think?

Issue details: https://javafx-jira.kenai.com/browse/RT-28599

 Milan



Re: Dumping the rendering process in JavaFX

2013-06-07 Thread Tom Schindl
I've started working on a JavaFX-Scene to FXML dumper but its not yet 
really useable.


Tom

On 07.06.13 14:34, Hervé Girod wrote:

Hello,

We are porting a swing application in JavaFX, and we had various unit tests 
where we created for testing purposes a dummy Graphics2D which stored the list 
of its shapes and transformations.

This allowed us to perform unit tests for the rendering of some of our graphic 
components or Look and Feels.

We tried to do the same thing in JavaFX by using the swing -JavaFX bridge and 
forcing a j2d prism rendering. It works, but JavaFX nodes are rendered as 
images, so it's not the right way to do it ;)

Is there a way to dump some kind of list of graphic orders in the current state 
of JavaFX (2.2 or 8) ?

Hervé

Sent from my iPhone





hg: openjfx/8/graphics/rt: RT-30983: Quantum cleanup: remove ToolkitInterface

2013-06-07 Thread hang . vo
Changeset: 148e27736eb6
Author:Artem Ananiev artem.anan...@oracle.com
Date:  2013-06-07 16:30 +0400
URL:   http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/148e27736eb6

RT-30983: Quantum cleanup: remove ToolkitInterface
Reviewed-by: Kevin Rushforth, Steve Northover

+ javafx-ui-common/src/com/sun/javafx/tk/CompletionListener.java
! javafx-ui-common/src/com/sun/javafx/tk/DummyToolkit.java
+ javafx-ui-common/src/com/sun/javafx/tk/RenderJob.java
! javafx-ui-common/src/com/sun/javafx/tk/Toolkit.java
! javafx-ui-quantum/src/com/sun/javafx/tk/quantum/EmbeddedScene.java
! javafx-ui-quantum/src/com/sun/javafx/tk/quantum/PaintCollector.java
! javafx-ui-quantum/src/com/sun/javafx/tk/quantum/PaintRenderJob.java
! javafx-ui-quantum/src/com/sun/javafx/tk/quantum/QuantumRenderer.java
! javafx-ui-quantum/src/com/sun/javafx/tk/quantum/QuantumToolkit.java
! javafx-ui-quantum/src/com/sun/javafx/tk/quantum/ViewScene.java
- prism-common/src/com/sun/prism/render/CompletionListener.java
- prism-common/src/com/sun/prism/render/RenderJob.java
- prism-common/src/com/sun/prism/render/ToolkitInterface.java
! test-stub-toolkit/src/com/sun/javafx/pgstub/StubToolkit.java
! webview/src/com/sun/javafx/webkit/prism/PrismInvoker.java



Re: Dumping the rendering process in JavaFX

2013-06-07 Thread Hervé Girod
Thanks, that's very interesting ! It may be what I need ! I will check it soon !

Hervé

Sent from my iPhone

On 7 juin 2013, at 15:55, Alexandre (Shura) Iline 
alexandre.il...@oracle.com wrote:

 Hi.
 
 
 FWIW, with JemmyFX you can do:
 new SceneDock().asParent().lookup().dump(System.out);
 
 What you get is (full output is attached):
 | +-javafx.scene.layout.VBox - javafx.scene.layout.Pane - 
 javafx.scene.layout.Region - javafx.scene.Parent - javafx.scene.Node
 | |   isFocused=false
 ...
 | |   getLayoutX=0.0
 | | +-javafx.scene.layout.GridPane - javafx.scene.layout.Pane - 
 javafx.scene.layout.Region - javafx.scene.Parent - javafx.scene.Node
 | | |   isFocused=false
 | | |   getLayoutBounds=BoundingBox [minX:0.0, minY:0.0, minZ:0.0, 
 width:93.0, height:48.0, depth:0.0, maxX:93.0, maxY:48.0, maxZ:0.0]
 ...
 | | |   getStyleClass=
 | | |   getLayoutX=0.0
 | | | +-javafx.scene.control.Label - javafx.scene.control.Labeled - 
 javafx.scene.control.Control - javafx.scene.layout.Region - 
 javafx.scene.Parent - javafx.scene.Node
 ...
 | | | | +-com.sun.javafx.scene.control.skin.LabeledText - 
 javafx.scene.text.Text - javafx.scene.shape.Shape - javafx.scene.Node
 ...
 ...
 
 See more on JemmyFX lookup:
 http://hg.openjdk.java.net/openjfx/8/master/tests/raw-file/tip/tools/Jemmy/JemmyFX/samples/org/jemmy/samples/index.html
 
 Shura
 
 On 06/07/2013 05:42 PM, Richard Bair wrote:
 
 Begin forwarded message:
 
 *From:* Hervé Girod herve.gi...@gmail.com mailto:herve.gi...@gmail.com
 *Date:* June 7, 2013, 5:34:09 AM PDT
 *To:* openjfx-dev@openjdk.java.net
 mailto:openjfx-dev@openjdk.java.net List
 openjfx-dev@openjdk.java.net mailto:openjfx-dev@openjdk.java.net
 *Subject:* *Dumping the rendering process in JavaFX*
 
 Hello,
 
 We are porting a swing application in JavaFX, and we had various unit
 tests where we created for testing purposes a dummy Graphics2D which
 stored the list of its shapes and transformations.
 
 This allowed us to perform unit tests for the rendering of some of our
 graphic components or Look and Feels.
 
 We tried to do the same thing in JavaFX by using the swing -JavaFX
 bridge and forcing a j2d prism rendering. It works, but JavaFX nodes
 are rendered as images, so it's not the right way to do it ;)
 
 Is there a way to dump some kind of list of graphic orders in the
 current state of JavaFX (2.2 or 8) ?
 
 Hervé
 
 Sent from my iPhone
 scene.dump