Package it.eng.spagobi.engines.geo.map.renderer

Examples of it.eng.spagobi.engines.geo.map.renderer.GuiSettings


     
      SourceBean layersConfigurationSB = (SourceBean)confSB.getAttribute("LAYERS");
      Map layers = getLayers(layersConfigurationSB);
     
      SourceBean guiSettingsConfigurationSB = (SourceBean)confSB.getAttribute("GUI_SETTINGS");
      GuiSettings guiSettings = getGuiSettings(guiSettingsConfigurationSB);
     
      abstractMapRenderer.setMeasures( measures );
      abstractMapRenderer.setLayers( layers );
      abstractMapRenderer.setGuiSettings( guiSettings );
    }
View Full Code Here


   
    return layers;
  }
 
  private static GuiSettings getGuiSettings(SourceBean guiSettingsConfigurationSB) {
    GuiSettings guiSettings = null;
    SourceBean windowSettingsSB;
    SourceBean labelSettingsSB;
   
   
    SourceBean settingsSB;
    List params;
   

    guiSettings = new GuiSettings();
   
    if(guiSettingsConfigurationSB == null) return guiSettings;
   
    params = guiSettingsConfigurationSB.getAttributeAsList("PARAM");
    if(params != null) {
      addSettings(guiSettings.getGeneralSettings(), params);
    }   
   
   
    windowSettingsSB = (SourceBean)guiSettingsConfigurationSB.getAttribute("WINDOWS");
   
    if(windowSettingsSB != null) {
      settingsSB = (SourceBean)windowSettingsSB.getAttribute("DEFAULTS");
      if(settingsSB != null) {
        params = settingsSB.getAttributeAsList("PARAM");
        if(params != null) {
          addSettings(guiSettings.getWindowDefaultSettings(), params);
        }
      }
     
      settingsSB = (SourceBean)windowSettingsSB
        .getFilteredSourceBeanAttribute("WINDOW", "name", "navigation");       
      if(settingsSB != null) {
        guiSettings.getNavigationWindowSettings().put("name", "navigation");
        params = settingsSB.getAttributeAsList("PARAM");
        if(params != null) {
          addSettings(guiSettings.getNavigationWindowSettings(), params);
        }
      }
     
      settingsSB = (SourceBean)windowSettingsSB
        .getFilteredSourceBeanAttribute("WINDOW", "name", "measures");       
      if(settingsSB != null) {
        guiSettings.getMeasureWindowSettings().put("name", "measures");
        params = settingsSB.getAttributeAsList("PARAM");
        if(params != null) {
          addSettings(guiSettings.getMeasureWindowSettings(), params);
        }
      }
     
      settingsSB = (SourceBean)windowSettingsSB
        .getFilteredSourceBeanAttribute("WINDOW", "name", "layers");       
      if(settingsSB != null) {
        guiSettings.getLayersWindowSettings().put("name", "layers");
        params = settingsSB.getAttributeAsList("PARAM");
        if(params != null) {
          addSettings(guiSettings.getLayersWindowSettings(), params);
        }
      } 
     
      settingsSB = (SourceBean)windowSettingsSB
        .getFilteredSourceBeanAttribute("WINDOW", "name", "detail");       
      if(settingsSB != null) {
        guiSettings.getDetailWindowSettings().put("name", "detail");
        params = settingsSB.getAttributeAsList("PARAM");
        if(params != null) {
          addSettings(guiSettings.getDetailWindowSettings(), params);
        }
      } 
     
      settingsSB = (SourceBean)windowSettingsSB
        .getFilteredSourceBeanAttribute("WINDOW", "name", "legend");       
      if(settingsSB != null) {
        guiSettings.getLegendWindowSettings().put("name", "legend");
        params = settingsSB.getAttributeAsList("PARAM");
        if(params != null) {
          addSettings(guiSettings.getLegendWindowSettings(), params);
        }
      } 
     
      settingsSB = (SourceBean)windowSettingsSB
        .getFilteredSourceBeanAttribute("WINDOW", "name", "colourpicker");       
      if(settingsSB != null) {
        params = settingsSB.getAttributeAsList("PARAM");
        guiSettings.getColourpickerWindowSettings().put("name", "colourpicker");
        if(params != null) {
          addSettings(guiSettings.getColourpickerWindowSettings(), params);
        }
      } 
    }
   
    labelSettingsSB = (SourceBean)guiSettingsConfigurationSB.getAttribute("LABELS");
    if(labelSettingsSB != null) {
      Map labelProducers = getLabelProducers(labelSettingsSB);
      guiSettings.setLabelProducers(labelProducers);       
   
       
    return guiSettings;
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.geo.map.renderer.GuiSettings

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.