Package org.geotools.swing.tool

Examples of org.geotools.swing.tool.CursorTool


         */
        btn.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                mapFrame.getMapPane().setCursorTool(
                        new CursorTool() {

                            @Override
                            public void onMouseClicked(MapMouseEvent ev) {
                                selectFeatures(ev);
                            }
View Full Code Here


        JButtonFixture button = windowFixture.toolBar().button(btnName);
       
        button.click();
        windowFixture.robot.waitForIdle();
       
        CursorTool cursorTool = ((JMapFrame) windowFixture.component()).getMapPane().getCursorTool();
        if (expectedToolClass == null) {
            assertNull(cursorTool);  
        } else {
            assertEquals(expectedToolClass, cursorTool.getClass());
        }
    }
View Full Code Here

TOP

Related Classes of org.geotools.swing.tool.CursorTool

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.