Package org.locationtech.udig.project.ui.internal.commands.draw

Examples of org.locationtech.udig.project.ui.internal.commands.draw.DrawShapeCommand


        }
       
        points.add(new Coordinate(e.x,e.y));
      
        Rectangle2D r = new Rectangle2D.Double(e.x,e.y,2,2);
        DrawShapeCommand command = getContext().getDrawFactory()
          .createDrawShapeCommand(r,Color.BLACK);
       
        getContext().sendASyncCommand(command);
        getContext().getSelectedLayer().refresh(null);
    }
View Full Code Here


        AffineTransform transform=AffineTransform.getTranslateInstance(translationX, translationY);
        transform.scale(scaleX, scaleY);
        Shape transformedShape = path.createTransformedShape(transform);
        if( drawCommand==null ){
            drawCommand=new DrawShapeCommand();
            drawCommand.setPaint(PreferenceUtil.instance().getDrawGeomsLine());
            handler.getContext().sendSyncCommand(drawCommand);
        }
        drawCommand.setShape(transformedShape);
        handler.repaint();
View Full Code Here

     * @return a new DrawShapeCommand object
     * @see DrawShapeCommand
     */
    public DrawShapeCommand createDrawShapeCommand( Shape shape, Color paint, int lineStyle,
            int lineWidth ) {
        return new DrawShapeCommand(shape, paint, lineStyle, lineWidth);
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.internal.commands.draw.DrawShapeCommand

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.