Package org.joshy.sketch.model

Examples of org.joshy.sketch.model.SShape.toPath()


            SNode first = context.getSelection().firstItem();
            if(! (first instanceof SShape)) return;
            SShape shape = (SShape) first;
            if(shape instanceof SPath) return;

            SPath path = shape.toPath();
            SketchDocument.SketchPage page = context.getDocument().getCurrentPage();
            page.remove(shape);
            page.add(path);
            context.redraw();
        }
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.