changeset 1094:6f6711e369dd

Added toString implementation to the immutable Transform.
author Pavel Safrata
date Fri, 18 May 2012 15:56:48 +0200
parents f5158988671f
children 0cf2d3897858
files javafx-ui-common/src/com/sun/javafx/scene/transform/TransformUtils.java
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/com/sun/javafx/scene/transform/TransformUtils.java	Fri May 18 15:37:12 2012 +0200
+++ b/javafx-ui-common/src/com/sun/javafx/scene/transform/TransformUtils.java	Fri May 18 15:56:48 2012 +0200
@@ -147,5 +147,31 @@
                     getMyx(), getMyy(), getMyz(), getTy(),
                     getMzx(), getMzy(), getMzz(), getTz());
         }
+
+        /**
+         * Returns a string representation of this {@code Affine} object.
+         * @return a string representation of this {@code Affine} object.
+         */
+        @Override
+        public String toString() {
+            final StringBuilder sb = new StringBuilder("Transform [");
+
+            sb.append("mxx=").append(getMxx());
+            sb.append(", mxy=").append(getMxy());
+            sb.append(", mxz=").append(getMxz());
+            sb.append(", tx=").append(getTx());
+
+            sb.append(", myx=").append(getMyx());
+            sb.append(", myy=").append(getMyy());
+            sb.append(", myz=").append(getMyz());
+            sb.append(", ty=").append(getTy());
+
+            sb.append(", mzx=").append(getMzx());
+            sb.append(", mzy=").append(getMzy());
+            sb.append(", mzz=").append(getMzz());
+            sb.append(", tz=").append(getTz());
+
+            return sb.append("]").toString();
+        }
     }
 }