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>

Reply via email to