Package com.bbn.openmap.event

Examples of com.bbn.openmap.event.NavMouseMode


        // Add MouseMode. The MouseDelegator will find it via the
        // MapHandler.

        //  Adding NavMouseMode first makes it active.
        mapHandler.add(new NavMouseMode());

        System.out.println("Creating ToolPanel...");
        // Add the standard panning and zoom GUI to the JFrame.
        // Create the tool...
        mapHandler.add(new OMToolSet());
View Full Code Here


        _omts = new OMToolSet();
        _omts.findAndInit(_mapBean);
        _mouseDelegator = new MouseDelegator(_mapBean);
        _mouseModePanel = new MouseModePanel(_mouseDelegator);

        NavMouseMode nmm = new NavMouseMode();
        SelectMouseMode smm = new SelectMouseMode();
        _mouseDelegator.addMouseMode(nmm);
        _mouseDelegator.addMouseMode(smm);

        setupUI();
View Full Code Here

        _toolPanel = new ToolPanel();
        _omts = new OMToolSet();
        _omts.findAndInit(_mapBean);
        _mouseDelegator = new MouseDelegator(_mapBean);

        NavMouseMode nmm = new NavMouseMode();
        SelectMouseMode smm = new SelectMouseMode();
        _mouseDelegator.addMouseMode(nmm);
        _mouseDelegator.addMouseMode(smm);

        setupUI();
View Full Code Here

     * NavMouseMode (Map Navigation), the SelectMouseMode (MouseEvents
     * go to Layers), and NullMouseMode (MouseEvents are ignored).
     */
    public void setDefaultMouseModes() {
        MapMouseMode[] modes = new MapMouseMode[3];
        modes[0] = new NavMouseMode(true);
        modes[1] = new SelectMouseMode(true);
        modes[2] = new NullMouseMode();

        setMouseModes(modes);
    }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.event.NavMouseMode

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.