changeset 1821:99a390cd0ec5

RT-25753: toString() of gestures reports inertia.
author Pavel Safrata
date Mon, 22 Oct 2012 15:53:14 +0200
parents 923b26ed6ea4
children 732db3a8f698
files javafx-ui-common/src/javafx/scene/input/GestureEvent.java javafx-ui-common/src/javafx/scene/input/RotateEvent.java javafx-ui-common/src/javafx/scene/input/ScrollEvent.java javafx-ui-common/src/javafx/scene/input/ZoomEvent.java
diffstat 4 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/javafx/scene/input/GestureEvent.java	Fri Oct 19 05:00:04 2012 -0700
+++ b/javafx-ui-common/src/javafx/scene/input/GestureEvent.java	Mon Oct 22 15:53:14 2012 +0200
@@ -334,6 +334,10 @@
         sb.append(", x = ").append(getX()).append(", y = ").append(getY());
         sb.append(isDirect() ? ", direct" : ", indirect");
 
+        if (isInertia()) {
+            sb.append(", inertia");
+        }
+
         if (isShiftDown()) {
             sb.append(", shiftDown");
         }
--- a/javafx-ui-common/src/javafx/scene/input/RotateEvent.java	Fri Oct 19 05:00:04 2012 -0700
+++ b/javafx-ui-common/src/javafx/scene/input/RotateEvent.java	Mon Oct 22 15:53:14 2012 +0200
@@ -169,6 +169,10 @@
         sb.append(", x = ").append(getX()).append(", y = ").append(getY());
         sb.append(isDirect() ? ", direct" : ", indirect");
 
+        if (isInertia()) {
+            sb.append(", inertia");
+        }
+
         if (isShiftDown()) {
             sb.append(", shiftDown");
         }
--- a/javafx-ui-common/src/javafx/scene/input/ScrollEvent.java	Fri Oct 19 05:00:04 2012 -0700
+++ b/javafx-ui-common/src/javafx/scene/input/ScrollEvent.java	Mon Oct 22 15:53:14 2012 +0200
@@ -364,6 +364,10 @@
         sb.append(", x = ").append(getX()).append(", y = ").append(getY());
         sb.append(isDirect() ? ", direct" : ", indirect");
 
+        if (isInertia()) {
+            sb.append(", inertia");
+        }
+
         if (isShiftDown()) {
             sb.append(", shiftDown");
         }
--- a/javafx-ui-common/src/javafx/scene/input/ZoomEvent.java	Fri Oct 19 05:00:04 2012 -0700
+++ b/javafx-ui-common/src/javafx/scene/input/ZoomEvent.java	Mon Oct 22 15:53:14 2012 +0200
@@ -174,6 +174,10 @@
         sb.append(", x = ").append(getX()).append(", y = ").append(getY());
         sb.append(isDirect() ? ", direct" : ", indirect");
 
+        if (isInertia()) {
+            sb.append(", inertia");
+        }
+
         if (isShiftDown()) {
             sb.append(", shiftDown");
         }