Package org.geotools.swt.event

Examples of org.geotools.swt.event.MapMouseEvent


        }
        return listeners.remove(listener);
    }

    public void mouseScrolled( MouseEvent e ) {
        MapMouseEvent ev = convertWheelEvent(e);
        if (ev != null) {
            for( MapMouseListener listener : listeners ) {
                listener.onMouseWheelMoved(ev);
            }
        }
View Full Code Here


            }
        }
    }

    public void mouseMove( MouseEvent e ) {
        MapMouseEvent ev = convertEvent(e);
        if (ev != null) {
            for( MapMouseListener listener : listeners ) {
                if (isMouseDown) {
                    listener.onMouseDragged(ev);
                } else {
View Full Code Here

    }

    boolean isMouseDown = false;
    public void mouseDown( MouseEvent e ) {
        isMouseDown = true;
        MapMouseEvent ev = convertEvent(e);
        if (ev != null) {
            for( MapMouseListener listener : listeners ) {
                listener.onMouseClicked(ev);
            }
            for( MapMouseListener listener : listeners ) {
View Full Code Here

        }
    }

    public void mouseUp( MouseEvent e ) {
        isMouseDown = false;
        MapMouseEvent ev = convertEvent(e);
        if (ev != null) {
            for( MapMouseListener listener : listeners ) {
                listener.onMouseReleased(ev);
            }
        }
View Full Code Here

            }
        }
    }

    public void mouseEnter( MouseEvent e ) {
        MapMouseEvent ev = convertEvent(e);
        if (ev != null) {
            for( MapMouseListener listener : listeners ) {
                listener.onMouseEntered(ev);
            }
        }
View Full Code Here

            }
        }
    }

    public void mouseExit( MouseEvent e ) {
        MapMouseEvent ev = convertEvent(e);
        if (ev != null) {
            for( MapMouseListener listener : listeners ) {
                listener.onMouseExited(ev);
            }
        }
View Full Code Here

        // TODO Auto-generated method stub

    }

    private MapMouseEvent convertEvent( MouseEvent e ) {
        MapMouseEvent ev = null;
        if (mapPane.getScreenToWorldTransform() != null) {
            ev = new MapMouseEvent(mapPane, e, false);
        }

        return ev;
    }
View Full Code Here

        return ev;
    }

    private MapMouseEvent convertWheelEvent( MouseEvent e ) {
        MapMouseEvent ev = null;
        if (mapPane.getScreenToWorldTransform() != null) {
            ev = new MapMouseEvent(mapPane, e, true);
        }

        return ev;
    }
View Full Code Here

TOP

Related Classes of org.geotools.swt.event.MapMouseEvent

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.