Package sun.java2d

Examples of sun.java2d.InvalidPipeException


        boolean updateClip = (clip != validatedClip);
        boolean updatePaint = (paint != validatedPaint);

        if (!dstData.isValid()) {
            throw new InvalidPipeException("bounds changed");
        }

        if ((currentContext != this) ||
            (srcData != validatedSrcData) ||
            (dstData != validatedDstData))
View Full Code Here


                            Region clip, Composite comp,
                           AffineTransform xform,
                           int pixel, int flags)
    {
        if (dstData instanceof D3DSurfaceData == false) {
            throw new InvalidPipeException("Incorrect destination surface");
        }

        D3DContext d3dc = ((D3DSurfaceData)dstData).getContext();
        try {
            d3dc.validate(srcData, dstData, clip, comp, xform, pixel, flags);
View Full Code Here

        boolean updateClip = false;

        if ((srcData != null && !srcData.isValid()) || !dstData.isValid() ||
            dstData.getNativeOps() == 0L || dstData.isSurfaceLost())
        {
            throw new InvalidPipeException("Invalid surface");
        }

        if (!valid) {
            // attempt to reinitialize the context. If the device has been
            // reset, the following calls to setRenderTarget/setClip will
View Full Code Here

                pFormat = initOffScreenSurface(pCtx,
                                               pData, pDataParent,
                                               width, height, type, screen);
            } else {
                // if the context can't be restored, give up for now.
                throw new InvalidPipeException("D3DSD.initSurface: pData " +
                                               "or pCtx is null");
            }
        }
        return pFormat;
    }
View Full Code Here

        if (!dstData.isValid() ||
            dstData.isSurfaceLost() || srcData.isSurfaceLost())
        {
            invalidateContext();
            throw new InvalidPipeException("bounds changed or surface lost");
        }

        if (paint instanceof Color) {
            // REMIND: not 30-bit friendly
            int newRGB = ((Color)paint).getRGB();
View Full Code Here

                     int pixel, boolean needExposures)
    {
        // assert SunToolkit.isAWTLockHeldByCurrentThread();

        if (!isValid()) {
            throw new InvalidPipeException("bounds changed");
        }

        // validate clip
        if (clip != validatedClip) {
            validatedClip = clip;
View Full Code Here

    /**
     * Validates the Surface when used as destination.
     */
    public void validateAsDestination(SunGraphics2D sg2d, Region clip) {
        if (!isValid()) {
            throw new InvalidPipeException("bounds changed");
        }

        boolean updateGCClip = false;
        if (clip != validatedClip) {
            renderQueue.setClipRectangles(picture, clip);
View Full Code Here

                public void run() {
                    status.success = initSurfaceNow();
                }
            });
            if (!status.success) {
                throw new InvalidPipeException("Error creating D3DSurface");
            }
        } finally {
            rq.unlock();
        }
    }
View Full Code Here

        @Override
        void restoreSurface() {
            Window fsw = graphicsDevice.getFullScreenWindow();
            if (fsw != null && fsw != peer.getTarget()) {
                throw new InvalidPipeException("Can't restore onscreen surface"+
                                               " when in full-screen mode");
            }
            super.restoreSurface();
            // if initialization was unsuccessful, an IPE will be thrown
            // and the surface will remain lost
View Full Code Here

                     int pixel, boolean needExposures)
    {
        // assert SunToolkit.isAWTLockHeldByCurrentThread();

        if (!isValid()) {
            throw new InvalidPipeException("bounds changed");
        }

        // validate clip
        if (clip != validatedClip) {
            validatedClip = clip;
View Full Code Here

TOP

Related Classes of sun.java2d.InvalidPipeException

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.