changeset 7118:419ff0dc23c8

[TEST] Fix compile error in unit tests (follow-on to RT-32597)
author kcr
date Fri, 23 May 2014 12:08:30 -0700
parents 9f221ab57e22
children 55abe340d827
files modules/graphics/src/test/java/com/sun/javafx/pgstub/StubStage.java modules/graphics/src/test/java/com/sun/javafx/pgstub/StubToolkit.java
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/test/java/com/sun/javafx/pgstub/StubStage.java	Fri May 23 15:38:19 2014 +0400
+++ b/modules/graphics/src/test/java/com/sun/javafx/pgstub/StubStage.java	Fri May 23 12:08:30 2014 -0700
@@ -396,6 +396,11 @@
             // TODO: Add code later
         }
 
+        @Override
+        public void changedScreen(Object from, Object to) {
+            // TODO: Add code later
+        }
+
     }
 
     public void setRTL(boolean b) {
--- a/modules/graphics/src/test/java/com/sun/javafx/pgstub/StubToolkit.java	Fri May 23 15:38:19 2014 +0400
+++ b/modules/graphics/src/test/java/com/sun/javafx/pgstub/StubToolkit.java	Fri May 23 12:08:30 2014 -0700
@@ -518,6 +518,11 @@
         public float getDPI(Object obj) {
             return ((ScreenConfiguration) obj).getDPI();
         }
+
+        @Override
+        public float getScale(Object obj) {
+            return ((ScreenConfiguration) obj).getScale();
+        }
     };
 
     @Override
@@ -823,6 +828,7 @@
         private final int visualWidth;
         private final int visualHeight;
         private final float dpi;
+        private final float scale;
 
         public ScreenConfiguration(final int minX, final int minY,
                                    final int width, final int height,
@@ -840,6 +846,7 @@
             this.visualWidth = visualWidth;
             this.visualHeight = visualHeight;
             this.dpi = dpi;
+            this.scale = 1;  // TODO: add a constructor that takes scale
         }
 
         public int getMinX() {
@@ -877,6 +884,10 @@
         public float getDPI() {
             return dpi;
         }
+
+        public float getScale() {
+            return scale;
+        }
     }
 
     public static class StubSystemMenu implements TKSystemMenu {