Package org.geomajas.puregwt.client.map.gfx

Examples of org.geomajas.puregwt.client.map.gfx.ScreenContainer


   * @author Pieter De Graef
   */
  private class MyMapInitializationHandler implements MapInitializationHandler {

    public void onMapInitialized(MapInitializationEvent event) {
      ScreenContainer container = mapPresenter.addScreenContainer();
      rectangle = new Rectangle(60, 40, 200, 80);
      rectangle.setFillColor("#CC9900");
      rectangle.setFillOpacity(0.4);

      text = new Text(70, 60, "Drag me...");
      text.setFontFamily("Arial");
      text.setFontSize(16);
      text.setStrokeOpacity(0);
      text.setFillColor("#000000");
      container.add(text);
      container.add(rectangle);

      DragHandler dragHandler = new DragHandler();
      rectangle.addMouseDownHandler(dragHandler);
      rectangle.addMouseUpHandler(dragHandler);
      rectangle.addMouseMoveHandler(dragHandler);
View Full Code Here


  public Collection<MapListener> getMapListeners() {
    return listeners.keySet();
  }

  public void addMapGadget(MapGadget mapGadget) {
    ScreenContainer container = addScreenContainer();
    gadgets.put(mapGadget, container);
    if (layersModel != null && viewPort != null) {
      mapGadget.onDraw(viewPort, container);
    }
  }
View Full Code Here

TOP

Related Classes of org.geomajas.puregwt.client.map.gfx.ScreenContainer

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.