src/windows/classes/sun/awt/windows/WEmbeddedFrame.java

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt.windows;
  27 
  28 import sun.awt.*;
  29 import java.awt.*;
  30 import java.awt.event.InvocationEvent;
  31 import java.awt.peer.ComponentPeer;
  32 import java.awt.image.*;
  33 import sun.awt.image.ByteInterleavedRaster;
  34 import sun.security.action.GetPropertyAction;
  35 import java.security.PrivilegedAction;
  36 import  java.security.AccessController;
  37 

  38 public class WEmbeddedFrame extends EmbeddedFrame {
  39 
  40     static {
  41         initIDs();
  42     }
  43 
  44     private long handle;
  45 
  46     private int bandWidth = 0;
  47     private int bandHeight = 0;
  48     private int imgWid = 0;
  49     private int imgHgt = 0;
  50 
  51     private static int pScale = 0;
  52     private static final int MAX_BAND_SIZE = (1024*30);
  53 
  54     private static String printScale = AccessController.doPrivileged(
  55         new GetPropertyAction("sun.java2d.print.pluginscalefactor"));
  56 
  57     public WEmbeddedFrame() {




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt.windows;
  27 
  28 import sun.awt.*;
  29 import java.awt.*;
  30 import java.awt.event.InvocationEvent;
  31 import java.awt.peer.ComponentPeer;
  32 import java.awt.image.*;
  33 import sun.awt.image.ByteInterleavedRaster;
  34 import sun.security.action.GetPropertyAction;
  35 import java.security.PrivilegedAction;
  36 import  java.security.AccessController;
  37 
  38 @SuppressWarnings("serial") // JDK-implementation class
  39 public class WEmbeddedFrame extends EmbeddedFrame {
  40 
  41     static {
  42         initIDs();
  43     }
  44 
  45     private long handle;
  46 
  47     private int bandWidth = 0;
  48     private int bandHeight = 0;
  49     private int imgWid = 0;
  50     private int imgHgt = 0;
  51 
  52     private static int pScale = 0;
  53     private static final int MAX_BAND_SIZE = (1024*30);
  54 
  55     private static String printScale = AccessController.doPrivileged(
  56         new GetPropertyAction("sun.java2d.print.pluginscalefactor"));
  57 
  58     public WEmbeddedFrame() {