Package org.joshy.sketch.actions.swatches

Examples of org.joshy.sketch.actions.swatches.Palette


    private Asset toAsset(Node n) {
        String kind = (String) n.getProperty(KIND);
        if(STATIC_LIST.equals(kind)) return null;

        if(PALETTE.equals(kind)) {
            Palette pal = new Palette(this,n);
            pal.load();
            return pal;
        }

        String filepath = null;
        if(n.hasProperty(FILEPATH)) {
View Full Code Here


            Node asset = graphDb.createNode();
            asset.setProperty(KIND,PALETTE);
            asset.setProperty(NAME, "new palette");
            kindsIndex.add(asset,KIND,PALETTE);
            kindsIndex.add(asset, NAME, "new palette".toLowerCase());
            Palette pal = new Palette(this, asset);
            pal.setEditable(true);
            tx.success();
            return pal;
        } finally {
           tx.finish();
        }
View Full Code Here

        try {
            IndexHits<Node> ret;
            ret = kindsIndex.get(KIND,PALETTE);
            List<Palette> pals = new ArrayList<Palette>();
            for(Node n : ret) {
                Palette pal = new Palette(this,n);
                pal.load();
                pals.add(pal);
            }
            tx.success();
            return pals;
        } finally {
View Full Code Here

TOP

Related Classes of org.joshy.sketch.actions.swatches.Palette

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.