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

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


        helper.startMutualExclusiveList();
        helper.startOrderedList(false);
        AddVertexWhileCreatingBehaviour addVertexWhileCreatingBehaviour = new AddVertexWhileCreatingBehaviour();
        addVertexWhileCreatingBehaviour.setEditValidator(new PolygonCreationValidator());
        helper.add( addVertexWhileCreatingBehaviour);
        helper.add( new AcceptWhenOverFirstVertexBehaviour());
        helper.stopOrderedList();
        helper.startAdvancedFeatures();
        helper.add(new SelectVertexOnMouseDownBehaviour());
        helper.add( new SelectVertexBehaviour());
        helper.stopAdvancedFeatures();
View Full Code Here


        helper.startMutualExclusiveList();
        helper.startOrderedList(false);
        AddVertexWhileCreatingBehaviour addVertexWhileCreatingBehaviour = new AddVertexWhileCreatingBehaviour();
        addVertexWhileCreatingBehaviour.setEditValidator(new ValidHoleValidator());
        helper.add( addVertexWhileCreatingBehaviour);
        helper.add( new AcceptWhenOverFirstVertexBehaviour());
        helper.stopOrderedList();
        helper.startOrderedList(true);
        // behaviours that select the geometry and hole
        helper.add(new SelectFeatureBehaviour(new Class[]{Polygon.class, MultiPolygon.class}, BBOX.class));
        helper.add( new StartHoleCuttingBehaviour());
View Full Code Here

        helper.add( new DrawCreateVertexSnapAreaBehaviour());
        helper.startMutualExclusiveList();
       
        helper.startOrderedList(false);
        helper.add( new AddVertexWhileCreatingBehaviour());
        helper.add( new AcceptWhenOverFirstVertexBehaviour());
        helper.stopOrderedList();
       
        //override so that editing will not be started if there are no geometries on the blackboard.
        helper.add( new StartEditingBehaviour(ShapeType.POLYGON) );
        helper.stopMutualExclusiveList();
View Full Code Here

TOP

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

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.