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

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


    // Attach a DrawingArea inside the clipping area (used for vector rendering):
    drawingArea = new DrawingArea(100, 100);
    add(drawingArea, 0, 0);

    // First child within the vector drawing area is a group for the map to render it's non-HTML layers:
    layerVectorContainer = new VectorGroup();
    drawingArea.add(layerVectorContainer);

    // Second child within the vector drawing area is a group for screen and world containers:
    userVectorContainer = new VectorGroup();
    drawingArea.add(userVectorContainer);

    // Third child within the vector drawing area is a group for map gadget containers:
    gadgetVectorContainer = new VectorGroup();
    drawingArea.add(gadgetVectorContainer);

    // Firefox and Chrome allow for DnD of images. This default behavior is not wanted.
    addMouseDownHandler(new MouseDownHandler() {
View Full Code Here


    }
    return false;
  }

  public VectorContainer getMapGadgetContainer() {
    VectorGroup container = new VectorGroup();
    gadgetVectorContainer.add(container);
    return container;
  }
View Full Code Here

  private VectorContainer getVectorContainer(Layer<?> layer) {
    if (vectorLayerContainers.containsKey(layer)) {
      return vectorLayerContainers.get(layer);
    }
    VectorGroup container = new VectorGroup();
    //container.setSize(viewPort.getMapWidth() + "px", viewPort.getMapHeight() + "px");
    vectorContainer.add(container);
    vectorLayerContainers.put(layer, container);
    return container;
  }
View Full Code Here

TOP

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

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.