Package de.fhpotsdam.unfolding.events

Examples of de.fhpotsdam.unfolding.events.EventDispatcher


    size(1024, 768, OPENGL);

    map1 = new UnfoldingMap(this, "map1", 0, 0, 512, height);
    map1.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
    map2 = new UnfoldingMap(this, "map2", 512, 0, 512, height, true, false, new Microsoft.AerialProvider());
    EventDispatcher eventDispatcher = MapUtils.createDefaultEventDispatcher(this, map1, map2);

    // Create debug displays
    debugDisplay1 = new DebugDisplay(this, map1, eventDispatcher, 10, 10);
    debugDisplay2 = new DebugDisplay(this, map2, eventDispatcher, 522, 10);
  }
View Full Code Here


  public void setup() {
    size(1230, 700, OPENGL);
    smooth();

    eventDispatcher = new EventDispatcher();

    // OSM --------------------------------------------
    mapOSM = new UnfoldingMap(this, "mapOSM", 10, 10, 400, 335);

    // OSM to Satellite
View Full Code Here

    size(800, 600, OPENGL);

    map = new UnfoldingMap(this, new StamenMapProvider.Toner());
    // MapUtils.createDefaultEventDispatcher(this, map);

    EventDispatcher eventDispatcher = new EventDispatcher();
    MouseHandler mouseHandler = new MouseHandler(this, map);
    eventDispatcher.addBroadcaster(mouseHandler);
    eventDispatcher.register(map, PanMapEvent.TYPE_PAN, map.getId());
    eventDispatcher.register(map, ZoomMapEvent.TYPE_ZOOM, map.getId());

  }
View Full Code Here

  public void setup() {
    size(800, 600, P2D);

    map = new UnfoldingMap(this);
    map.zoomToLevel(2);
    EventDispatcher eventDispatcher = MapUtils.createDefaultEventDispatcher(this, map);

    leftMap = createWrappedMap(map, eventDispatcher, true);
    rightMap = createWrappedMap(map, eventDispatcher, false);
  }
View Full Code Here

TOP

Related Classes of de.fhpotsdam.unfolding.events.EventDispatcher

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.