Package org.geomajas.widget.advancedviews.configuration.client.themes

Examples of org.geomajas.widget.advancedviews.configuration.client.themes.RangeConfig


        activateViewConfig(null);
      }
    });

    for (ViewConfig viewConfig : themeInfo.getThemeConfigs()) {
      RangeConfig rangeConfig = getRangeConfigForCurrentScale(viewConfig, mapWidget.getMapModel().getMapView()
          .getCurrentScale());

      String icon;
      if (rangeConfig != null) {
        icon = "[ISOMORPHIC]/" + rangeConfig.getIcon();
      } else {
        icon = "[ISOMORPHIC]/" + viewConfig.getIcon();
      }
      final IButton button = createButton(icon, viewConfig.getDescription());
View Full Code Here


  /**
   * Reset all icons
   */
  protected void resetIcons() {
    for (ViewConfigItem item : viewConfigItems) {
      RangeConfig config = getRangeConfigForCurrentScale(item.getViewConfig(), mapWidget.getMapModel()
          .getMapView().getCurrentScale());
      if (null != config && null != config.getIcon()) {
        item.getButton().setIcon("[ISOMORPHIC]/" + config.getIcon());
      }
    }

    if (activeViewConfig != null) {
      setButton(activeViewConfig.getButton());
View Full Code Here

    VLayout vLayout = new VLayout();
    vLayout.setWidth100();
    vLayout.setMembersMargin(5);
    for (ViewConfig viewConfig : themeInfo.getThemeConfigs()) {

      RangeConfig rangeConfig = getRangeConfigForCurrentScale(viewConfig, mapWidget.getMapModel().getMapView()
          .getCurrentScale());

      HLayout layout = new HLayout();

      layout.setMembersMargin(2);

      final IButton button = new IButton();
      button.setWidth100();
      button.setHeight(ROW_SIZE);
      button.setActionType(SelectionType.RADIO);
      button.setRadioGroup(getID() + THEME_RADIO_GROUP);
      if (rangeConfig != null) {
        button.setIcon("[ISOMORPHIC]/" + rangeConfig.getIcon());
      } else {
        button.setIcon("[ISOMORPHIC]/" + viewConfig.getIcon());
      }
      button.setIconWidth(IMAGE_SIZE);
      button.setIconHeight(IMAGE_SIZE);
View Full Code Here

  /**
   * Reset all icons
   */
  protected void resetIcons() {
    for (ViewConfigItem item : viewConfigItems) {
      RangeConfig config = getRangeConfigForCurrentScale(item.getViewConfig(),
          mapWidget.getMapModel().getMapView().getCurrentScale());
      if (null != config && null != config.getIcon()) {
        item.getButton().setIcon("[ISOMORPHIC]/" + config.getIcon());
      }
    }
  }
View Full Code Here

    this.activeViewConfig = viewConfig;
  }

  protected void renderViewConfig(ViewConfig viewConfig) {
    themeChange = true;
    RangeConfig config = getRangeConfigForCurrentScale(viewConfig, mapWidget.getMapModel().getMapView()
        .getCurrentScale());

    for (LayerConfig layerConfig : config.getLayerConfigs()) {
      Layer<?> layer = mapWidget.getMapModel().getLayer(layerConfig.getLayer().getId());
      if (layer != null) {
        layer.setVisible(layerConfig.isVisible());
        if (layer instanceof RasterLayer) {
          ((RasterLayer) layer).setOpacity(layerConfig.getTransparency());
View Full Code Here

TOP

Related Classes of org.geomajas.widget.advancedviews.configuration.client.themes.RangeConfig

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.