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

Examples of org.locationtech.udig.tools.edit.support.TestMouseTracker.updateState()


    @Test
    public void testUpdateState() throws Exception {
        TestMouseTracker tracker=new TestMouseTracker(new TestHandler() );

        MapMouseEvent event=new MapMouseEvent( DISPLAY, 10,15,NONE,BUTTON1, BUTTON1 );
        tracker.updateState(event, EventType.MOVED);
       
        assertEquals(Point.valueOf(10,15), tracker.getDragStarted());
       
        event=new MapMouseEvent( DISPLAY, 10,10,NONE,BUTTON1, BUTTON1 );
        tracker.updateState(event, EventType.DRAGGED);
View Full Code Here


        tracker.updateState(event, EventType.MOVED);
       
        assertEquals(Point.valueOf(10,15), tracker.getDragStarted());
       
        event=new MapMouseEvent( DISPLAY, 10,10,NONE,BUTTON1, BUTTON1 );
        tracker.updateState(event, EventType.DRAGGED);
        assertEquals(Point.valueOf(10,15), tracker.getDragStarted());
       
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.