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

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


  public void onLayerOrderChanged(LayerOrderChangedEvent event) {
    if (event.getFromIndex() < htmlContainer.getChildCount()) {
      // Source is rasterized layer:
      int toIndex = event.getToIndex() > htmlContainer.getChildCount() ? htmlContainer.getChildCount() : event
          .getToIndex();
      HtmlObject layerContainer = htmlContainer.getChild(event.getFromIndex());
      if (layerContainer != null) {
        htmlContainer.remove(layerContainer);
        htmlContainer.insert(layerContainer, toIndex);
      }
    } else {
View Full Code Here


  // ------------------------------------------------------------------------

  public void onLayerStyleChanged(LayerStyleChangedEvent event) {
    if (event.getLayer().getId().equals(rasterLayer.getId())) {
      for (int i = 0; i < htmlContainer.getChildCount(); i++) {
        HtmlObject htmlObject = htmlContainer.getChild(i);
        htmlObject.setOpacity(rasterLayer.getOpacity());
      }
    }
  }
View Full Code Here

  // ------------------------------------------------------------------------

  public void onLayerStyleChanged(LayerStyleChangedEvent event) {
    if (event.getLayer().getId().equals(rasterLayer.getId())) {
      for (int i = 0; i < htmlContainer.getChildCount(); i++) {
        HtmlObject htmlObject = htmlContainer.getChild(i);
        htmlObject.setOpacity(rasterLayer.getOpacity());
      }
    }
  }
View Full Code Here

TOP

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

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.