it.eng.spagobi.geo.configuration
Class MapConfiguration

java.lang.Object
  extended by it.eng.spagobi.geo.configuration.MapConfiguration

public class MapConfiguration
extends java.lang.Object


Constructor Summary
MapConfiguration(byte[] template, it.eng.spago.base.SourceBean servReq)
          Builds the MapConfiguration object loading configuration from xml template into SourceBeans
 
Method Summary
 it.eng.spago.base.SourceBean getDatamartProviderConfiguration()
          Gets the DatamartProvider Configuration
 java.lang.String getLegend()
          Builds the svg code used for the legend rendering
 it.eng.spago.base.SourceBean getLegenda()
           
 java.lang.String getMapName()
          Gets the map name
 it.eng.spago.base.SourceBean getMapProviderConfiguration()
          Gets the MapProvider Configuration
 java.lang.String getStyle(int value)
          Recovers the svg style associated to the level of the legend which contains the value
 void setDatamartProviderConfiguration(it.eng.spago.base.SourceBean datamartProviderConfiguration)
          Sets the DatamartProvider Configuration
 void setLegenda(it.eng.spago.base.SourceBean legenda)
           
 void setMapName(java.lang.String mapName)
          Sets the map name
 void setMapProviderConfiguration(it.eng.spago.base.SourceBean mapProviderConfiguration)
          Sets the MapProvider Configuration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapConfiguration

public MapConfiguration(byte[] template,
                        it.eng.spago.base.SourceBean servReq)
                 throws ConfigurationException
Builds the MapConfiguration object loading configuration from xml template into SourceBeans

Parameters:
template - The byte array of the xml template
Throws:
ConfigurationException - raised If some configurations is missing or wrong
Method Detail

getStyle

public java.lang.String getStyle(int value)
Recovers the svg style associated to the level of the legend which contains the value

Parameters:
value - The value associated to an svg element of the map
Returns:
the svg style associated to the level of the legend which contains the value

getLegend

public java.lang.String getLegend()
Builds the svg code used for the legend rendering

Returns:
the svg code of the legend

getMapName

public java.lang.String getMapName()
Gets the map name

Returns:
the map name

setMapName

public void setMapName(java.lang.String mapName)
Sets the map name

Parameters:
mapName - the map name

getDatamartProviderConfiguration

public it.eng.spago.base.SourceBean getDatamartProviderConfiguration()
Gets the DatamartProvider Configuration

Returns:
SourceBean that contains the configuration

setDatamartProviderConfiguration

public void setDatamartProviderConfiguration(it.eng.spago.base.SourceBean datamartProviderConfiguration)
Sets the DatamartProvider Configuration

Parameters:
datamartProviderConfiguration - SourceBean that contains the configuration

getMapProviderConfiguration

public it.eng.spago.base.SourceBean getMapProviderConfiguration()
Gets the MapProvider Configuration

Returns:
SourceBean that contains the configuration

setMapProviderConfiguration

public void setMapProviderConfiguration(it.eng.spago.base.SourceBean mapProviderConfiguration)
Sets the MapProvider Configuration

Parameters:
mapProviderConfiguration - SourceBean that contains the configuration

getLegenda

public it.eng.spago.base.SourceBean getLegenda()

setLegenda

public void setLegenda(it.eng.spago.base.SourceBean legenda)