Examples of MouseHandler


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

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

                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

Examples of com.agifans.picedit.gui.handler.MouseHandler

        this.picture = new Picture(editStatus);
        this.pictureCodeList = new PictureCodeList(picture);
        this.picture.addPictureChangeListener(pictureCodeList);
        this.egoTestHandler = new EgoTestHandler(editStatus, picture);
        this.picturePanel = new PicturePanel(editStatus, picture, egoTestHandler);
        mouseHandler = new MouseHandler(this, application);
        picturePanel.addMouseListener(mouseHandler);
        picturePanel.addMouseMotionListener(mouseHandler);
        picturePanel.addMouseWheelListener(mouseHandler);
       
        // This is import since without it a click on the picture frame stops the TAB accelerator key from working.
View Full Code Here

Examples of com.limelight.input.MouseHandler

   */
  public void build(Limelight limelight, NvConnection conn, StreamConfiguration streamConfig, boolean fullscreen) {
    this.limelight = limelight;
   
    keyboard = new KeyboardHandler(conn, this);
    mouse = new MouseHandler(conn, this);

    this.setBackground(Color.BLACK);
    this.setFocusableWindowState(true);
    this.setFocusTraversalKeysEnabled(false);
    this.addWindowListener(createWindowListener());
View Full Code Here

Examples of de.fhpotsdam.unfolding.interactions.MouseHandler

    mapOverview.setTweening(true);

    EventDispatcher eventDispatcher = new EventDispatcher();

    // Add mouse interaction to both maps
    MouseHandler mouseHandler = new MouseHandler(this, mapDetail, mapOverview);
    eventDispatcher.addBroadcaster(mouseHandler);

    // Maps listen to each other, i.e. each interaction in one map is reflected in the other
    eventDispatcher.register(mapDetail, "pan", mapDetail.getId(), mapOverview.getId());
    eventDispatcher.register(mapDetail, "zoom", mapDetail.getId(), mapOverview.getId());
View Full Code Here

Examples of de.fhpotsdam.unfolding.interactions.MouseHandler

   * @return The EventDispatcher to use for additional event handling.
   */
  public static EventDispatcher createDefaultEventDispatcher(PApplet p, UnfoldingMap... maps) {
    EventDispatcher eventDispatcher = new EventDispatcher();

    MouseHandler mouseHandler = new MouseHandler(p, maps);
    KeyboardHandler keyboardHandler = new KeyboardHandler(p, maps);

    eventDispatcher.addBroadcaster(mouseHandler);
    eventDispatcher.addBroadcaster(keyboardHandler);

View Full Code Here

Examples of de.fhpotsdam.unfolding.interactions.MouseHandler

   * @return The EventDispatcher to use for additional event handling.
   */
  public static EventDispatcher createMouseEventDispatcher(PApplet p, UnfoldingMap... maps) {
    EventDispatcher eventDispatcher = new EventDispatcher();

    MouseHandler mouseHandler = new MouseHandler(p, maps);

    eventDispatcher.addBroadcaster(mouseHandler);

    for (UnfoldingMap map : maps) {
      eventDispatcher.register(map, PanMapEvent.TYPE_PAN, map.getId());
View Full Code Here

Examples of de.fhpotsdam.unfolding.interactions.MouseHandler

    size(800, 600);

    map = new UnfoldingMap(this);

    eventDispatcher = new EventDispatcher();
    MouseHandler mouseHandler = new MouseHandler(this, map);
    eventDispatcher.addBroadcaster(mouseHandler);
    listen();

    slider = new ZoomSlider(this, map, 50, 30);
  }
View Full Code Here

Examples of de.fhpotsdam.unfolding.interactions.MouseHandler

    UnfoldingMap map3 = new UnfoldingMap(this, "map3", 830, 10, 400, 400);
    map3.setTweening(false);
    map3.setActive(false);
    maps.add(map3);

    MouseHandler mouseHandler = new MouseHandler(this, maps);
    eventDispatcher.addBroadcaster(mouseHandler);
    KeyboardHandler keyboardHandler = new KeyboardHandler(this, maps);
    eventDispatcher.addBroadcaster(keyboardHandler);

    // See class description for detailed explanation of these registrations.
View Full Code Here

Examples of de.fhpotsdam.unfolding.interactions.MouseHandler

    mapGoogleSmallSat = new UnfoldingMap(this, "mapGoogleSmallSat", 960, 355, 260, 335, true, false,
        new Microsoft.AerialProvider());

    // First OSM and first google map are broadcasters
    MouseHandler mouseHandler = new MouseHandler(this, mapOSM, mapGoogle);
    eventDispatcher.addBroadcaster(mouseHandler);

    // All maps listen to events from both broadcasters
    List<MapEventListener> maps = new ArrayList<MapEventListener>();
    maps.add(mapOSM);
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.