Package org.joshy.sketch.modes.preso

Examples of org.joshy.sketch.modes.preso.PresoModeHelper$AddTitlePage


        for(Asset asset : assetDatabase.getAllFonts()) {
            new FontBuilder(asset.getFile()).resolve();
        }

        modeHelpers.add(new VectorModeHelper(this));
        modeHelpers.add(new PresoModeHelper(this));
        modeHelpers.add(new PixelModeHelper(this));
        modeHelpers.add(new TiledPixelModeHelper(this));
        defaultModeHelper = modeHelpers.get(0);

        propMan = new PropertyManager();
View Full Code Here


            if(file.getName().toLowerCase().endsWith(".png")) {
                loadPng(file);
            } if (file.getName().toLowerCase().endsWith(".leoz")) {
                SketchDocument doc = loadZip(file);
                if(doc.isPresentation()) {
                    main.setupNewDoc(new PresoModeHelper(main),doc);
                } else {
                    main.setupNewDoc(new VectorModeHelper(main),doc);
                }
            } else {
                SketchDocument doc = load(new FileInputStream(file), file, file.getName(),null);
                if(doc.isPresentation()) {
                    main.setupNewDoc(new PresoModeHelper(main),doc);
                } else {
                    main.setupNewDoc(new VectorModeHelper(main),doc);
                }
                main.addRecentFile(file);
            }
View Full Code Here

    private void load(File file) throws Exception {
        if(file.getName().toLowerCase().endsWith(".svg")) {
            SketchDocument doc = importSVG(file);
            if(doc.isPresentation()) {
                context.getMain().setupNewDoc(new PresoModeHelper(context.getMain()),doc);
            } else {
                context.getMain().setupNewDoc(new VectorModeHelper(context.getMain()),doc);
            }
            return;
        }
View Full Code Here

TOP

Related Classes of org.joshy.sketch.modes.preso.PresoModeHelper$AddTitlePage

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.