Package org.locationtech.udig.tools.edit.support

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


        }
           
        ILayer editLayer = handler.getEditLayer();
        List<EditGeom> geoms = handler.getEditBlackboard(editLayer).getGeoms();
        for( EditGeom geom : geoms ) {
            PrimitiveShapeIterator iter=PrimitiveShapeIterator.getPathIterator(geom.getShell());
            if( iter.toShape().contains(e.x,e.y) ){
                if (cycleGeom) {
                    if (selectedFound) { //first match after the currently selected one
                        return geom.getShell();
                    }
                    if (geom == handler.getCurrentGeom()) { //currently selected geom
View Full Code Here


    private int countOnBlackboard( EditToolHandler handler, MapMouseEvent e ) {
        List<EditGeom> geoms = handler.getEditBlackboard(handler.getEditLayer()).getGeoms();
        int count = 0;
        for( EditGeom geom : geoms ) {
            PrimitiveShapeIterator iter=PrimitiveShapeIterator.getPathIterator(geom.getShell());
            if( iter.toShape().contains(e.x,e.y) ){
                count++;
            }
        }
        return count;
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.edit.support.PrimitiveShapeIterator

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.