Examples of ShapeType


Examples of org.locationtech.udig.tools.edit.support.ShapeType

                PathIterator iter = drawCommand.getShape().getPathIterator(AffineTransform.getTranslateInstance(0,0), 1.0);
                UndoableComposite commands=new UndoableComposite();
                commands.getCommands().add(handler.getContext().getEditFactory().createNullEditFeatureCommand());
                EditBlackboard bb = handler.getEditBlackboard(handler.getEditLayer());
                commands.getCommands().add(new DeselectEditGeomCommand(handler, bb.getGeoms()));
                ShapeType shapeType = determineLayerType(handler);
               
               
                CreateEditGeomCommand createEditGeomCommand = new CreateEditGeomCommand(bb, "newShape", shapeType); //$NON-NLS-1$
                commands.getCommands().add(createEditGeomCommand);
                commands.getCommands().add(EditUtils.instance.appendPathToShape(iter, shapeType, handler, bb, createEditGeomCommand.getShapeProvider()));
View Full Code Here

Examples of org.locationtech.udig.tools.edit.support.ShapeType

        oldFeature = featureProvider.get(new SubProgressMonitor(monitor, 1));
        oldGeometry = (Geometry) oldFeature.getDefaultGeometry();
        layer = layerProvider.get(new SubProgressMonitor(monitor, 1));

        editBlackboard.removeGeometries(Collections.singleton(oldshape.getEditGeom()));
        ShapeType shapeType = oldshape.getEditGeom().getShapeType();
        EditGeom current = editBlackboard.newGeom(oldshape.getEditGeom().getFeatureIDRef().get(), shapeType);
        first = current;

        final Set<EditGeom> addedGeoms=new HashSet<EditGeom>();
        for( int i = 0; i < oldshape.getNumPoints(); i++ ) {
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.