Package org.geomajas.gwt.client.controller

Examples of org.geomajas.gwt.client.controller.PanController


    // Map with ID mapOsm is defined in the XML configuration. (mapOsm.xml)
    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    HLayout buttonLayout = new HLayout();
    buttonLayout.setMembersMargin(10);
View Full Code Here


  private PanController controller;

  public PanModalAction(MapWidget mapWidget) {
    super("[ISOMORPHIC]/geomajas/osgeo/pan.png", I18nProvider.getToolbar().pan());
    this.mapWidget = mapWidget;
    controller = new PanController(mapWidget);
  }
View Full Code Here

  // Constructor:
  // -------------------------------------------------------------------------

  public ParentEditController(MapWidget mapWidget) {
    super(mapWidget, null);
    panner = new PanController(mapWidget);
    panner.setShowCursorOnMove(true);
  }
View Full Code Here

    mapModel.addMapModelHandler(this);
    mapModel.getMapView().addMapViewChangedHandler(this);
    graphics = new GraphicsWidget(getID() + "Graphics");
    painterVisitor = new PainterVisitor(graphics);
    mapModel.addFeatureSelectionHandler(new MapWidgetFeatureSelectionHandler(this));
    graphics.setFallbackController(new PanController(this));

    // Painter registration:
    painterVisitor.registerPainter(new CirclePainter());
    painterVisitor.registerPainter(new RectanglePainter());
    painterVisitor.registerPainter(new TextPainter());
View Full Code Here

    VLayout layout = new VLayout();
    layout.setWidth100();
    layout.setHeight100();

    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");
    map.setController(new PanController(map));

    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    // Create a custom controller that will be enabled/disabled by a button in the toolbar:
View Full Code Here

    layout.setHeight100();

    final MapWidget map = new MapWidget("mapOsmNoResolutions", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));

    final Toolbar toolbar = new Toolbar(map);
    // add a button in GWT code
    layout.addMember(toolbar);
    layout.addMember(map);
View Full Code Here

    layout.setHeight100();

    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    // Set a panning controller on the map:
    map.setController(new PanController(map));

    final Toolbar toolbar = new Toolbar(map);
    // add a button in GWT code
    layout.addMember(toolbar);
    layout.addMember(map);
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.controller.PanController

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.