Package org.locationtech.udig.tools.edit.preferences

Examples of org.locationtech.udig.tools.edit.preferences.PreferenceUtil


        assertEquals(new Coordinate(expected[0], expected[1]),map.getCoords(x,y).get(0));
    }
   
    @Test
    public void testAddOverlappingVertex() throws Exception {
        new PreferenceUtil(){
            {
                instance=this;
            }
            @Override
            public int getVertexRadius() {
                return 4;
            }
        };
        EventListener l=new EventListener();
        EditBlackboard map = new EditBlackboard(SCREEN.x,SCREEN.y, transform, layerToWorld);
        map.getListeners().add(l);
       
        PrimitiveShape shell = map.getGeoms().get(0).getShell();
       
        map.addPoint(10,10, shell);
        map.addPoint(9,9, shell);
        map.addPoint(9,10, shell);
        map.addPoint(9,11, shell);
        map.addPoint(10,9, shell);
        map.addPoint(11,10, shell);
        map.addPoint(11,9, shell);
        map.addPoint(11,10, shell);
        map.addPoint(11,11, shell);
       
        assertEquals(9, map.getCoords(10,10).size());
        assertEquals(0, map.getCoords(9,9).size());
        assertEquals(0, map.getCoords(9,10).size());
        assertEquals(0, map.getCoords(9,11).size());
        assertEquals(0, map.getCoords(10,9).size());
        assertEquals(0, map.getCoords(10,11).size());
        assertEquals(0, map.getCoords(11,9).size());
        assertEquals(0, map.getCoords(11,10).size());
        assertEquals(0, map.getCoords(11,11).size());
        new PreferenceUtil(){
            {
                instance=this;
            }
            @Override
            public int getVertexRadius() {
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.edit.preferences.PreferenceUtil

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.