< prev index next >

src/java.desktop/macosx/classes/sun/awt/CGraphicsConfig.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 23,35 **** * questions. */ package sun.awt; ! import java.awt.*; ! import java.awt.geom.*; ! import java.awt.image.*; import sun.java2d.SurfaceData; import sun.java2d.opengl.CGLLayer; import sun.lwawt.LWGraphicsConfig; import sun.lwawt.macosx.CPlatformView; --- 23,38 ---- * questions. */ package sun.awt; ! import java.awt.GraphicsConfiguration; ! import java.awt.Rectangle; ! import java.awt.Transparency; ! import java.awt.geom.AffineTransform; ! import java.awt.image.BufferedImage; ! import java.awt.image.ColorModel; import sun.java2d.SurfaceData; import sun.java2d.opengl.CGLLayer; import sun.lwawt.LWGraphicsConfig; import sun.lwawt.macosx.CPlatformView;
*** 47,62 **** @Override public BufferedImage createCompatibleImage(int width, int height) { throw new UnsupportedOperationException("not implemented"); } - private static native Rectangle2D nativeGetBounds(int screen); - @Override ! public Rectangle getBounds() { ! final Rectangle2D nativeBounds = nativeGetBounds(device.getCGDisplayID()); ! return nativeBounds.getBounds(); // does integer rounding } @Override public ColorModel getColorModel() { if (colorModel == null) { --- 50,62 ---- @Override public BufferedImage createCompatibleImage(int width, int height) { throw new UnsupportedOperationException("not implemented"); } @Override ! public final Rectangle getBounds() { ! return device.getBounds(); } @Override public ColorModel getColorModel() { if (colorModel == null) {
< prev index next >