src/java.desktop/macosx/classes/sun/awt/CGraphicsConfig.java
changeset 53673 e04d39094915
parent 52537 814c49afb1a7
child 57196 a95707a39ff5
equal deleted inserted replaced
53672:f024302abefd 53673:e04d39094915
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    27 
    27 
    28 import java.awt.GraphicsConfiguration;
    28 import java.awt.GraphicsConfiguration;
    29 import java.awt.Rectangle;
    29 import java.awt.Rectangle;
    30 import java.awt.Transparency;
    30 import java.awt.Transparency;
    31 import java.awt.geom.AffineTransform;
    31 import java.awt.geom.AffineTransform;
    32 import java.awt.image.BufferedImage;
       
    33 import java.awt.image.ColorModel;
    32 import java.awt.image.ColorModel;
    34 
    33 
    35 import sun.java2d.SurfaceData;
    34 import sun.java2d.SurfaceData;
    36 import sun.java2d.opengl.CGLLayer;
    35 import sun.java2d.opengl.CGLLayer;
    37 import sun.lwawt.LWGraphicsConfig;
    36 import sun.lwawt.LWGraphicsConfig;
    46     protected CGraphicsConfig(CGraphicsDevice device) {
    45     protected CGraphicsConfig(CGraphicsDevice device) {
    47         this.device = device;
    46         this.device = device;
    48     }
    47     }
    49 
    48 
    50     @Override
    49     @Override
    51     public BufferedImage createCompatibleImage(int width, int height) {
       
    52         throw new UnsupportedOperationException("not implemented");
       
    53     }
       
    54 
       
    55     @Override
       
    56     public final Rectangle getBounds() {
    50     public final Rectangle getBounds() {
    57         return device.getBounds();
    51         return device.getBounds();
    58     }
    52     }
    59 
    53 
    60     @Override
    54     @Override
    61     public ColorModel getColorModel() {
    55     public ColorModel getColorModel() {
    62         if (colorModel == null) {
    56         if (colorModel == null) {
    63             colorModel = getColorModel(Transparency.OPAQUE);
    57             colorModel = getColorModel(Transparency.OPAQUE);
    64         }
    58         }
    65         return colorModel;
    59         return colorModel;
    66     }
       
    67 
       
    68     @Override
       
    69     public ColorModel getColorModel(int transparency) {
       
    70         throw new UnsupportedOperationException("not implemented");
       
    71     }
    60     }
    72 
    61 
    73     @Override
    62     @Override
    74     public AffineTransform getDefaultTransform() {
    63     public AffineTransform getDefaultTransform() {
    75         double scaleFactor = device.getScaleFactor();
    64         double scaleFactor = device.getScaleFactor();