Package org.joshy.sketch.model

Examples of org.joshy.sketch.model.ResizableGrid9Shape$ControlPointAdapter


            this.notInMainDocument = false;
            textNode = (SText) node;
            doc.getCurrentPage().remove(textNode);
        }
        if(node instanceof ResizableGrid9Shape) {
            ResizableGrid9Shape grid9 = (ResizableGrid9Shape) node;
            textNode = grid9.getTextChild();
            this.notInMainDocument = true;
            offsetX = grid9.getTranslateX();
            offsetY = grid9.getTranslateY();
        }
        overlayTextBox = new Textarea();
        overlayTextBox.setFont(Font
            .name(textNode.getFontName())
            .size((float) (textNode.getFontSize()*context.getSketchCanvas().getScale()))
 
View Full Code Here


    @Override
    public void execute() {
        if(context.getSelection().isEmpty()) return;
        Bounds sbounds = context.getSelection().calculateBounds();
        ResizableGrid9Shape shape = new ResizableGrid9Shape(0,0,sbounds.getWidth(),sbounds.getHeight());
        shape.setTranslateX(sbounds.getX());
        shape.setTranslateY(sbounds.getY());

        SketchDocument doc = context.getDocument();
        for(SNode node : context.getSelection().sortedItems(doc)) {
            shape.add(node);
            doc.getCurrentPage().remove(node);
        }
        doc.getCurrentPage().add(shape);
        context.getSelection().setSelectedNode(shape);
        context.selectButtonForTool(context.getEditResizableShapeTool());
View Full Code Here

TOP

Related Classes of org.joshy.sketch.model.ResizableGrid9Shape$ControlPointAdapter

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.