Package de.fhpotsdam.unfolding

Examples of de.fhpotsdam.unfolding.UnfoldingMap


  Location oldLocation = new Location(0, 0);

  public void setup() {
    size(800, 600, OPENGL);
    map = new UnfoldingMap(this, "myMap");

    EventDispatcher eventDispatcher = MapUtils.createDefaultEventDispatcher(this, map);
    // Register this PApplet to listen to map events
    eventDispatcher.register(this, "pan", map.getId());
    eventDispatcher.register(this, "zoom", map.getId());
View Full Code Here


  public void setup() {
    size(800, 600, OPENGL);
    // size(1920, 1080, OPENGL);

    map = new UnfoldingMap(this);
    map.setTweening(false);
    map.zoomAndPanTo(13, new Location(1.283f, 103.833f));
    map.setPanningRestriction(new Location(1.283f, 103.833f), 30);

    eventDispatcher = new EventDispatcher();
View Full Code Here

  public void setup() {
    size(1400, 800, OPENGL);

    visImg = loadImage("test/splendor-cutout.png");

    map = new UnfoldingMap(this, "Satellite Map", new Microsoft.AerialProvider());
    map.zoomAndPanTo(center, 14);
    MapUtils.createDefaultEventDispatcher(this, map);

    debugDisplay = new DebugDisplay(this, map);
  }
View Full Code Here

    // Creates non-default dispatcher to register own broadcasters and listeners.
    eventDispatcher = new EventDispatcher();

    // Creates default mapDisplay
    UnfoldingMap map1 = new UnfoldingMap(this, "map1", 10, 10, 400, 400);
    map1.setTweening(false);
    map1.setActive(false);
    maps.add(map1);
    UnfoldingMap map2 = new UnfoldingMap(this, "map2", 420, 10, 400, 400);
    map2.setTweening(false);
    maps.add(map2);
    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);
View Full Code Here

  EventDispatcher eventDispatcher;

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

    map = new UnfoldingMap(this);

    eventDispatcher = new EventDispatcher();
    MouseHandler mouseHandler = new MouseHandler(this, map);
    eventDispatcher.addBroadcaster(mouseHandler);
    listen();
View Full Code Here

  public void printEventDispatcher() {
    for (String eventType : eventDispatcher.typedScopedListeners.keySet()) {
      List<ScopedListeners> scopedListenersList = eventDispatcher.typedScopedListeners.get(eventType);
      for (ScopedListeners scopedListeners : scopedListenersList) {
        for (MapEventListener listener : scopedListeners.listeners) {
          UnfoldingMap map = (UnfoldingMap) listener;
          log.debug(map.getId() +" listens to " + eventType + " of " + scopedListeners.scopeIds);
        }
      }
    }

  }
View Full Code Here

    size(1400, 800, OPENGL);

    // Very low quality for file size reasons. Use original from http://schwinki.de/splendor/
    visImg = loadImage("test/splendor-big.jpg");

    map = new UnfoldingMap(this, "Satellite Map", new Microsoft.AerialProvider());
    map.zoomAndPanTo(center, 14);
    MapUtils.createDefaultEventDispatcher(this, map);

    debugDisplay = new DebugDisplay(this, map);
  }
View Full Code Here

  PImage compassImg;

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

    map = new UnfoldingMap(this);
    map.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
    MapUtils.createDefaultEventDispatcher(this, map);

    compassImg = loadImage("ui/compass_grey.png");
    compass = new CompassUI(this, map, compassImg, 700, 100);
View Full Code Here

  LargeMapImageUtils lmiUtils;

  public void setup() {
    size(500, 500, OPENGL);

    map = new UnfoldingMap(this);
    map.zoomAndPanTo(location, zoomLevel);
    MapUtils.createDefaultEventDispatcher(this, map);

    println("Init large map image.");
    lmiUtils = new LargeMapImageUtils(this, map);
View Full Code Here

  public void setup() {
    size(800, 600, OPENGL);
    // size(1920, 1080, OPENGL);

    map = new UnfoldingMap(this);
    map.setTweening(false);
    map.zoomAndPanTo(13, new Location(54.5, 13.4));

    eventDispatcher = new EventDispatcher();
View Full Code Here

TOP

Related Classes of de.fhpotsdam.unfolding.UnfoldingMap

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.