Package ca.nengo.ui.lib.world.handlers

Examples of ca.nengo.ui.lib.world.handlers.MouseHandler


     */
    panHandler = new PanEventHandler();
    keyboardHandler = new KeyboardHandler(this);
    mySky.getCamera().addInputEventListener(keyboardHandler);
    mySky.getCamera().addInputEventListener(new TooltipPickHandler(this, 1000, 0));
    mySky.getCamera().addInputEventListener(new MouseHandler(this));

    selectionEventHandler = new SelectionHandler(this, panHandler);
    selectionEventHandler.setMarqueePaint(NengoStyle.COLOR_BORDER_SELECTED);
    selectionEventHandler.setMarqueeStrokePaint(NengoStyle.COLOR_BORDER_SELECTED);
    selectionEventHandler.setMarqueePaintTransparency(0.1f);
View Full Code Here


                protected void action() {
                    // look for the active mouse handler. If it exists, it should contain
                    // the current mouse position (from the mousemoved event), so use this
                    // to create a new PasteEvent
                    PasteAction a;
                    MouseHandler mh = MouseHandler.getActiveMouseHandler();
                    if (mh != null) {
                        a = new PasteAction("Paste", (NodeContainer)mh.getWorld(), true);
                        Point2D pos = mh.getMouseMovedRelativePosition();
                        if (pos != null) {
                            a.setPosition(pos.getX(), pos.getY());
                        }
                    } else {
                        a = new PasteAction("Paste", NengoGraphics.getInstance(), true);
View Full Code Here

TOP

Related Classes of ca.nengo.ui.lib.world.handlers.MouseHandler

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.