Package ae.sun.java2d

Examples of ae.sun.java2d.HeadlessGraphicsEnvironment


    static void initSGEnv() {
        if (sgEnv == null) {
            GraphicsEnvironment ge =
                GraphicsEnvironment.getLocalGraphicsEnvironment();
            if (ge instanceof HeadlessGraphicsEnvironment) {
                HeadlessGraphicsEnvironment hgEnv =
                    (HeadlessGraphicsEnvironment)ge;
                sgEnv = (SunGraphicsEnvironment)
                    hgEnv.getSunGraphicsEnvironment();
            } else {
                sgEnv = (SunGraphicsEnvironment)ge;
            }
        }
    }
View Full Code Here


//                localEnv =
//                    (GraphicsEnvironment) Class.forName(nm).newInstance();
//              long t1 = System.currentTimeMillis();
//              System.out.println("GE creation took " + (t1-t0)+ "ms.");
                if (isHeadless()) {
                    localEnv = new HeadlessGraphicsEnvironment(localEnv);
                }
//ae            } catch (ClassNotFoundException e) {
//                throw new Error("Could not find class: "+nm);
//            } catch (InstantiationException e) {
//                throw new Error("Could not instantiate Graphics Environment: "
View Full Code Here

TOP

Related Classes of ae.sun.java2d.HeadlessGraphicsEnvironment

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.