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

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


        selectGeometryBehaviour.initDefaultStrategies(ShapeType.POLYGON);
        helper.add( selectGeometryBehaviour);
        helper.add( new InsertVertexOnEdgeBehaviour() );
       
        helper.startElseFeatures();
        helper.add(new StartEditingBehaviour(ShapeType.POLYGON));
        helper.stopElseFeatures();
       
        helper.stopAdvancedFeatures();
        helper.stopMutualExclusiveList();
       
View Full Code Here


        selectGeometryBehaviour.initDefaultStrategies(ShapeType.LINE);
        helper.add(selectGeometryBehaviour);
        helper.add(new InsertVertexOnEdgeBehaviour());

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

    helper.startMutualExclusiveList();
    helper.add(new AddSplitVertexBehaviour());
    // override so that editing will not be started if there are no
    // geometries on the
    // blackboard.
    helper.add(new StartEditingBehaviour(ShapeType.LINE));
    helper.stopMutualExclusiveList();

    helper.add(new SetSnapSizeBehaviour());
    helper.add(new AcceptOnDoubleClickBehaviour());
    helper.done();
View Full Code Here

        //run only the first valid behaviour
        helper.startMutualExclusiveList();
        helper.add(new AddVertexWhileCreatingBehaviour());
        // override so that editing will not be started if there are no geometries on the
        // blackboard.
        helper.add(new StartEditingBehaviour(ShapeType.POINT));
        helper.stopMutualExclusiveList();

        // End interaction trigger when the third coordinate is entered
        NumOfPointsRunAcceptBehaviour acceptBehaviour = new NumOfPointsRunAcceptBehaviour(3);
        // acceptBehaviour.setAddPoint(true); FIXME it is not present in rc15
View Full Code Here

        helper.add(new DrawCreateVertexSnapAreaBehaviour());
        helper.startMutualExclusiveList();
        helper.add(new AddVertexWhileCreatingBehaviour());
        // override so that editing will not be started if there are no geometries on the
        // blackboard.
        helper.add(new StartEditingBehaviour(ShapeType.LINE));
        helper.stopMutualExclusiveList();

    helper.add(new SetSnapSizeBehaviour());
        helper.add(new AcceptOnDoubleClickBehaviour());
        helper.done();
View Full Code Here

        SelectFeatureBehaviour selectGeometryBehaviour = new SelectFeatureBehaviour(new Class[]{Point.class, MultiPoint.class}, BBOX.class);
        selectGeometryBehaviour.initDefaultStrategies(ShapeType.POINT);
        helper.add(selectGeometryBehaviour);

        helper.startElseFeatures();
        helper.add(new StartEditingBehaviour(ShapeType.POINT));
        helper.stopElseFeatures();
       
        helper.stopAdvancedFeatures();
        helper.stopMutualExclusiveList();
       
View Full Code Here

        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();


        helper.add( new AcceptOnDoubleClickBehaviour() );
        helper.done();
View Full Code Here

TOP

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

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.