Package sun.awt

Examples of sun.awt.Win32GraphicsConfig


        }
    }

    @Override
    public SurfaceDataProxy makeProxyFor(SurfaceData srcData) {
        Win32GraphicsConfig wgc = (Win32GraphicsConfig) graphicsConfig;
        return Win32SurfaceDataProxy.createProxy(srcData, wgc);
    }
View Full Code Here


        }
    }

    //This will return null for Components not yet added to a Container
    public ColorModel getDeviceColorModel() {
        Win32GraphicsConfig gc =
            (Win32GraphicsConfig)getGraphicsConfiguration();
        if (gc != null) {
            return gc.getDeviceColorModel();
        }
        else {
            return null;
        }
    }
View Full Code Here

    public Image createImage(ImageProducer producer) {
        return new ToolkitImage(producer);
    }

    public Image createImage(int width, int height) {
        Win32GraphicsConfig gc =
            (Win32GraphicsConfig)getGraphicsConfiguration();
        return gc.createAcceleratedImage((Component)target, width, height);
    }
View Full Code Here

    @Override
    public void createBuffers(int numBuffers, BufferCapabilities caps)
        throws AWTException
    {
        Win32GraphicsConfig gc =
            (Win32GraphicsConfig)getGraphicsConfiguration();
        gc.assertOperationSupported((Component)target, numBuffers, caps);

        // Re-create the primary surface with the new number of back buffers
        try {
            replaceSurfaceData(numBuffers - 1, caps);
        } catch (InvalidPipeException e) {
View Full Code Here

    {
        VolatileImage backBuffer = this.backBuffer;
        if (backBuffer == null) {
            throw new IllegalStateException("Buffers have not been created");
        }
        Win32GraphicsConfig gc =
            (Win32GraphicsConfig)getGraphicsConfiguration();
        gc.flip(this, (Component)target, backBuffer, x1, y1, x2, y2, flipAction);
    }
View Full Code Here

        }
    }

    //This will return null for Components not yet added to a Container
    public ColorModel getDeviceColorModel() {
        Win32GraphicsConfig gc =
            (Win32GraphicsConfig)getGraphicsConfiguration();
        if (gc != null) {
            return gc.getDeviceColorModel();
        }
        else {
            return null;
        }
    }
View Full Code Here

        return super.restoreContents();
    }

    protected ColorModel getDeviceColorModel() {
        if (comp != null) {
            Win32GraphicsConfig gc =
                (Win32GraphicsConfig)comp.getGraphicsConfiguration();
            return gc.getDeviceColorModel();
        } else {
            return ((Win32GraphicsConfig)graphicsConfig).getDeviceColorModel();
        }
    }
View Full Code Here

                if (pData == 0) {
                    return;
                }
                numBackBuffers = newNumBackBuffers;
                SurfaceData oldData = surfaceData;
                Win32GraphicsConfig gc =
                    (Win32GraphicsConfig)getGraphicsConfiguration();
                surfaceData = gc.createSurfaceData(this, numBackBuffers);
                if (oldData != null) {
                    oldData.invalidate();
                    // null out the old data to make it collected faster
                    oldData = null;
                }

                if (backBuffer != null) {
                    // this will remove the back buffer from the
                    // display change notification list
                    backBuffer.flush();
                    backBuffer = null;
                }

                if (numBackBuffers > 0) {
                    backBuffer = gc.createBackBuffer(this);
                }
            }
        }
    }
View Full Code Here

        }
    }

    //This will return null for Components not yet added to a Container
    public ColorModel getDeviceColorModel() {
        Win32GraphicsConfig gc =
            (Win32GraphicsConfig)getGraphicsConfiguration();
        if (gc != null) {
            return gc.getDeviceColorModel();
        }
        else {
            return null;
        }
    }
View Full Code Here

    public Image createImage(ImageProducer producer) {
        return new ToolkitImage(producer);
    }

    public Image createImage(int width, int height) {
        Win32GraphicsConfig gc =
            (Win32GraphicsConfig)getGraphicsConfiguration();
        return gc.createAcceleratedImage((Component)target, width, height);
    }
View Full Code Here

TOP

Related Classes of sun.awt.Win32GraphicsConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.