Package org.locationtech.udig.tools.edit.behaviour

Examples of org.locationtech.udig.tools.edit.behaviour.InsertVertexOnEdgeBehaviour


                new CursorControlBehaviour.SystemCursorProvider(SWT.CURSOR_CROSS), new StaticProvider<String>(Messages.AddVertexTool_add_vertex)));

//      vertex selection OR geometry selection should not both happen so make them a mutual exclusion behaviour
        helper.startMutualExclusiveList();
        helper.add(new SelectFeatureBehaviour(new Class[]{Geometry.class}, Intersects.class));
        helper.add(new InsertVertexOnEdgeBehaviour());
        helper.stopMutualExclusiveList();
       
        helper.add( new AcceptOnDoubleClickBehaviour() );
        helper.done();
    }
View Full Code Here


        helper.startAdvancedFeatures();
        SelectFeatureBehaviour selectGeometryBehaviour = new SelectFeatureBehaviour(new Class[]{Polygon.class, MultiPolygon.class}, Intersects.class);
        selectGeometryBehaviour.initDefaultStrategies(ShapeType.POLYGON);
        helper.add( selectGeometryBehaviour);
        helper.add( new InsertVertexOnEdgeBehaviour() );
       
        helper.startElseFeatures();
        helper.add(new StartEditingBehaviour(ShapeType.POLYGON));
        helper.stopElseFeatures();
       
View Full Code Here

       
        helper.startAdvancedFeatures();
        SelectFeatureBehaviour selectGeometryBehaviour = new SelectFeatureBehaviour(new Class[]{LineString.class, LinearRing.class, MultiLineString.class}, Intersects.class);
        selectGeometryBehaviour.initDefaultStrategies(ShapeType.LINE);
        helper.add(selectGeometryBehaviour);
        helper.add(new InsertVertexOnEdgeBehaviour());

        helper.startElseFeatures();
        helper.add(new StartEditingBehaviour(ShapeType.LINE));
        helper.stopElseFeatures();
       
View Full Code Here

        helper.add(new SelectVertexOnMouseDownBehaviour());
        helper.add(new SelectVertexBehaviour());
        helper.add(new SelectFeatureBehaviour(new Class[]{Geometry.class}, Intersects.class));

        helper.startAdvancedFeatures();
        helper.add(new InsertVertexOnEdgeBehaviour());
        helper.stopAdvancedFeatures();

        helper.stopMutualExclusiveList();

        helper.startMutualExclusiveList();
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.edit.behaviour.InsertVertexOnEdgeBehaviour

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.