src/share/classes/sun/awt/LightweightFrame.java

Print this page

        

@@ -122,6 +122,22 @@
      * The method is called by the AWT grab machinery.
      *
      * @see SunToolkit#ungrab(java.awt.Window)
      */
     public abstract void ungrabFocus();
+    
+    /**
+     * Returns the scale factor set with the {@link #setScaleFactor} method.
+     * The default value is 1.
+     * 
+     * @return the scale factor
+     */
+    public abstract int getScaleFactor();
+    
+    /**
+     * Sets the scale factor which defines the HiDPI resolution
+     * of the offscreen buffer the frame is painted to.
+     * 
+     * @param scale the factor
+     */
+    public abstract void setScaleFactor(int scale);    
 }