Java 类sun.awt.CGraphicsConfig 实例源码

项目:OpenJSharp    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:jdk8u-jdk    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:openjdk-jdk10    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:openjdk9    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:jdk8u_jdk    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:lookaside_java-1.8.0-openjdk    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:infobip-open-jdk-8    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:jdk8u-dev-jdk    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:OLD-OpenJDK8    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:openjdk-jdk7u-jdk    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:openjdk-icedtea7    文件:CGLLayer.java   
public SurfaceData replaceSurfaceData() {
    if (getBounds().isEmpty()) {
        surfaceData = NullSurfaceData.theInstance;
        return surfaceData;
    }

    // the layer redirects all painting to the buffer's graphics
    // and blits the buffer to the layer surface (in drawInCGLContext callback)
    CGraphicsConfig gc = (CGraphicsConfig)getGraphicsConfiguration();
    surfaceData = gc.createSurfaceData(this);
    setScale(gc.getDevice().getScaleFactor());
    // the layer holds a reference to the buffer, which in
    // turn has a reference back to this layer
    if (surfaceData instanceof CGLSurfaceData) {
        validate((CGLSurfaceData)surfaceData);
    }

    return surfaceData;
}
项目:OpenJSharp    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:jdk8u-jdk    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:openjdk-jdk10    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:openjdk9    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:jdk8u_jdk    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:lookaside_java-1.8.0-openjdk    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:infobip-open-jdk-8    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:jdk8u-dev-jdk    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:OLD-OpenJDK8    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:openjdk-jdk7u-jdk    文件:LWCanvasPeer.java   
@Override
public void createBuffers(final int numBuffers,
                          final BufferCapabilities caps) {
    //TODO parameters should be used.
    final CGraphicsConfig gc = (CGraphicsConfig) getGraphicsConfiguration();
    final VolatileImage buffer = gc.createBackBufferImage(getTarget(), 0);
    synchronized (getStateLock()) {
        backBuffer = buffer;
    }
}
项目:openjdk-jdk7u-jdk    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}
项目:openjdk-icedtea7    文件:LWCanvasPeer.java   
@Override
public void createBuffers(final int numBuffers,
                          final BufferCapabilities caps) {
    //TODO parameters should be used.
    final CGraphicsConfig gc = (CGraphicsConfig) getGraphicsConfiguration();
    final VolatileImage buffer = gc.createBackBufferImage(getTarget(), 0);
    synchronized (getStateLock()) {
        backBuffer = buffer;
    }
}
项目:openjdk-icedtea7    文件:CPlatformView.java   
public SurfaceData replaceSurfaceData() {
    if (!LWCToolkit.getSunAwtDisableCALayers()) {
        surfaceData = windowLayer.replaceSurfaceData();
    } else {
        if (surfaceData == null) {
            CGraphicsConfig graphicsConfig = (CGraphicsConfig)getGraphicsConfiguration();
            surfaceData = graphicsConfig.createSurfaceData(this);
        } else {
            validateSurface();
        }
    }
    return surfaceData;
}