changeset 5216:604ebe0585ea

[DOC-ONLY] RT-32979: Example of boundsInParent & boundsInLocal in javafx.scene.Node documentation is confusing
author Eva Krejcirova <eva.krejcirova@oracle.com>
date Tue, 01 Oct 2013 15:02:03 +0100
parents fb7da215b220
children ac845cbafb49
files modules/graphics/src/main/docs/javafx/scene/doc-files/bounds-complex.png modules/graphics/src/main/docs/javafx/scene/doc-files/boundsLocal.png modules/graphics/src/main/docs/javafx/scene/doc-files/boundsParent.png modules/graphics/src/main/java/javafx/scene/Node.java
diffstat 4 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
Binary file modules/graphics/src/main/docs/javafx/scene/doc-files/bounds-complex.png has changed
Binary file modules/graphics/src/main/docs/javafx/scene/doc-files/boundsLocal.png has changed
Binary file modules/graphics/src/main/docs/javafx/scene/doc-files/boundsParent.png has changed
--- a/modules/graphics/src/main/java/javafx/scene/Node.java	Tue Oct 01 15:48:22 2013 +0200
+++ b/modules/graphics/src/main/java/javafx/scene/Node.java	Tue Oct 01 15:02:03 2013 +0100
@@ -337,11 +337,14 @@
  * clip, or any transforms. For resizable classes (Regions and Controls)
  * layoutBounds will always map to {@code 0,0 width x height}.
  *
- * <p> The image shows a node with transformation (rotation by 20 degrees)
- * and its bounds. The red rectangle represents {@code boundsInParent} in the
- * coordinate space of the Node's parent. The green rectangle represents {@code boundsInLocal}
- * in coordinate space of the Node. </p>
- * <p> <img src="doc-files/bounds-complex.png"/> </p>
+ * <p> The image shows a node without any transformation and its {@code boundsInLocal}:
+ * <p> <img src="doc-files/boundsLocal.png"/> </p>
+ * If we rotate the image by 20 degrees we get following result:
+ * <p> <img src="doc-files/boundsParent.png"/> </p>
+ * The red rectangle represents {@code boundsInParent} in the
+ * coordinate space of the Node's parent. The {@code boundsInLocal} stays the same
+ * as in the first image, the green rectangle in this image represents {@code boundsInLocal}
+ * in the coordinate space of the Node. </p>
  *
  * <p> The images show a filled and stroked rectangle and their bounds. The
  * first rectangle {@code [x:10.0 y:10.0 width:100.0 height:100.0 strokeWidth:0]}