Package nodebox.node

Examples of nodebox.node.NodeLibrary


    @Override
    public void start() {
        if (frame != null) stop();
        frame = new JFrame();
        NodeLibrary nodeLibrary = NodeBoxDocument.getCurrentDocument().getNodeLibrary();
        String fileName = getFileName();
        if (! fileName.startsWith("/") && nodeLibrary.getFile() != null) {
            File f = new File(nodeLibrary.getFile().getParentFile(), fileName);
            fileName = f.getAbsolutePath();
        }
        applet = new MinimApplet(fileName, true);
        applet.init();
        frame.add(applet);
View Full Code Here



    }

    public static void main(String[] args) {
        NodeLibrary library = NodeLibrary.create("test", Node.ROOT);
        library = library.withProperty("screenshot.region", "network");
        library = library.withProperty("screenshot.path", "/root/invader");
        DocumentPropertiesDialog editor = new DocumentPropertiesDialog(new NodeBoxDocument(library));
        editor.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of nodebox.node.NodeLibrary

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.