Package de.fhpotsdam.unfolding.interactions

Examples of de.fhpotsdam.unfolding.interactions.KeyboardHandler


   */
  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);

    for (UnfoldingMap map : maps) {
View Full Code Here


    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.
    eventDispatcher.register(map1, "pan");
    eventDispatcher.register(map1, "zoom");
View Full Code Here

TOP

Related Classes of de.fhpotsdam.unfolding.interactions.KeyboardHandler

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.