Package org.locationtech.udig.tools.edit.enablement

Examples of org.locationtech.udig.tools.edit.enablement.ValidToolDetectionActivator


public class PolygonTool extends AbstractEditTool {

    @Override
    protected void initEnablementBehaviours( List<EnablementBehaviour> helper ) {
        helper.add(new WithinLegalLayerBoundsBehaviour());
        helper.add(new ValidToolDetectionActivator(new Class[]{Geometry.class, Polygon.class, MultiPolygon.class}));
    }
View Full Code Here


    }

    @Override
    protected void initEnablementBehaviours( List<EnablementBehaviour> helper ) {
        helper.add(new WithinLegalLayerBoundsBehaviour());
        helper.add(new ValidToolDetectionActivator(new Class[]{Geometry.class, LineString.class, MultiLineString.class}));
    }
View Full Code Here

*/
public class RectangleTool extends AbstractEditTool {
    @Override
    protected void initEnablementBehaviours( List<EnablementBehaviour> helper ) {
        helper.add(new WithinLegalLayerBoundsBehaviour());
        helper.add(new ValidToolDetectionActivator(new Class[]{Geometry.class, MultiLineString.class,
                LineString.class, LinearRing.class, Polygon.class, MultiPolygon.class}));
    }
View Full Code Here

  @Override
  protected void initEnablementBehaviours(List<EnablementBehaviour> enablementBehaviours) {
    /*
     * enablementBehaviours.add(new WithinLegalLayerBoundsBehaviour());
     */
    enablementBehaviours.add(new ValidToolDetectionActivator(new Class[] {
        LineString.class,
        MultiLineString.class,
        MultiPolygon.class,
        Polygon.class}));
  }
View Full Code Here

     * @return the enablement behaviour in a list
     */
    public static List<EnablementBehaviour> createValidToolEnablementBehaviour(
            Class< ? extends Geometry>[] classes ) {
        List<EnablementBehaviour> enablementBehaviours = new ArrayList<EnablementBehaviour>();
        enablementBehaviours.add(new ValidToolDetectionActivator(classes));
        return enablementBehaviours;
    }
View Full Code Here

  }

  @Override
  protected void initEnablementBehaviours(List<EnablementBehaviour> enablementBehaviours) {
    enablementBehaviours.add(new WithinLegalLayerBoundsBehaviour());
    enablementBehaviours.add(new ValidToolDetectionActivator(new Class[] {
        Geometry.class,
        Polygon.class,
        MultiPolygon.class,
        LineString.class,
        MultiLineString.class }));
View Full Code Here

     * @param enablementBehaviours an empty list
     */
    @Override
    protected void initEnablementBehaviours( List<EnablementBehaviour> enablementBehaviours ) {
    enablementBehaviours.add(new WithinLegalLayerBoundsBehaviour());
    enablementBehaviours.add(new ValidToolDetectionActivator(new Class[] {
        Geometry.class,
        Polygon.class,
        MultiPolygon.class,
        LineString.class,
        MultiLineString.class }));
View Full Code Here

    @Override
    protected void initEnablementBehaviours( List<EnablementBehaviour> enablementBehaviours ) {
        /*
         * enablementBehaviours.add(new WithinLegalLayerBoundsBehaviour());
         */
        enablementBehaviours.add(new ValidToolDetectionActivator(new Class[]{Geometry.class,
                LineString.class, MultiLineString.class}));
    }
View Full Code Here

*/
public class SelectionTool extends AbstractEditTool {
    @Override
    protected void initEnablementBehaviours( List<EnablementBehaviour> helper ) {
        helper.add(new WithinLegalLayerBoundsBehaviour());
        helper.add(new ValidToolDetectionActivator(new Class[]{Geometry.class, LineString.class,
                MultiLineString.class, Polygon.class, MultiPolygon.class, Point.class,
                MultiPoint.class}));
    }
View Full Code Here

    }

    @Override
    protected void initEnablementBehaviours( List<EnablementBehaviour> helper ) {
        helper.add(new WithinLegalLayerBoundsBehaviour());
        helper.add(new ValidToolDetectionActivator(new Class[]{Geometry.class, Polygon.class, MultiPolygon.class}));
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.edit.enablement.ValidToolDetectionActivator

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.