Package sun.java2d

Examples of sun.java2d.SunGraphics2D.dispose()


                Graphics2D bbg =
                    new SunGraphics2D(bbsd, Color.black, Color.white, null);
                try {
                    bbg.drawImage(xBackBuffer, 0, 0, null);
                } finally {
                    bbg.dispose();
                }
            } else {
                Graphics g = peer.getGraphics();
                try {
                    g.drawImage(xBackBuffer,
View Full Code Here


                Graphics2D bbg =
                    new SunGraphics2D(bbsd, Color.black, Color.white, null);
                try {
                    bbg.drawImage(backBuffer, 0, 0, null);
                } finally {
                    bbg.dispose();
                }
            } else {
                Graphics g = peer.getGraphics();
                try {
                    g.drawImage(backBuffer,
View Full Code Here

                // if succeeded, first fill the surface with bg color
                // note: use the non-synch method to avoid incorrect lock order
                Color bg = sd.getPeer().getBackgroundNoSync();
                SunGraphics2D sg2d = new SunGraphics2D(sd, bg, bg, null);
                sg2d.fillRect(0, 0, sd.getBounds().width, sd.getBounds().height);
                sg2d.dispose();
                // now clean the dirty status so that we don't flip it
                // next time before it gets repainted; it is safe
                // to do without the lock because we will issue a
                // repaint anyway so we will not lose any rendering
                sd.markClean();
View Full Code Here

                                  java.awt.Color.white, defaultFont);

            DrawImage.renderSurfaceData(swG2d, surfaceDataSw,
                                        (java.awt.Color)null,
                                        0, 0, 0, 0, getWidth(), getHeight());
            swG2d.dispose();
            SunGraphics2D hwG2D =
                new SunGraphics2D(surfaceDataHw, java.awt.Color.black,
                                  java.awt.Color.white, defaultFont);
            DrawImage.renderSurfaceData(hwG2D, bisd,
                                        (java.awt.Color)null,
View Full Code Here

                new SunGraphics2D(surfaceDataHw, java.awt.Color.black,
                                  java.awt.Color.white, defaultFont);
            DrawImage.renderSurfaceData(hwG2D, bisd,
                                        (java.awt.Color)null,
                                        0, 0, 0, 0, getWidth(), getHeight());
            hwG2D.dispose();
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.