it.eng.qbe.geo.configuration
Class MapRendererConfiguration

java.lang.Object
  extended by it.eng.qbe.geo.configuration.MapRendererConfiguration

public class MapRendererConfiguration
extends java.lang.Object

The Class MapRendererConfiguration.

Author:
Andrea Gioia

Nested Class Summary
static class MapRendererConfiguration.Layer
          The Class Layer.
static class MapRendererConfiguration.Measure
          The Class Measure.
 
Constructor Summary
MapRendererConfiguration(MapConfiguration parentConfiguration)
          Instantiates a new map renderer configuration.
MapRendererConfiguration(MapConfiguration parentConfiguration, it.eng.spago.base.SourceBean mapRendererConfigurationSB)
          Instantiates a new map renderer configuration.
 
Method Summary
 void addLayer(MapRendererConfiguration.Layer layer)
          Adds the layer.
 void addMeasure(MapRendererConfiguration.Measure measure)
          Adds the measure.
 java.lang.String getClassName()
          Gets the class name.
 java.lang.String[] getColoursArray(java.lang.String measureName)
          Gets the colours array.
 java.lang.String getContextPath()
          Gets the context path.
 java.lang.String getKpiColour(java.lang.String measureName)
          Gets the kpi colour.
 java.lang.String getKpiDescription(java.lang.String measureName)
          Gets the kpi description.
 MapRendererConfiguration.Layer getLayer(java.lang.String layerName)
          Gets the layer.
 java.lang.String getLayerDefaultFillColor(java.lang.String layerName)
          Gets the layer default fill color.
 java.lang.String getLayerDescription(java.lang.String layerName)
          Gets the layer description.
 java.lang.String[] getLayerNames()
          Gets the layer names.
 MapRendererConfiguration.Measure getMeasure(java.lang.String measureName)
          Gets the measure.
 MapConfiguration getParentConfiguration()
          Gets the parent configuration.
 java.lang.String[] getTresholdsArray(java.lang.String measureName)
          Gets the tresholds array.
 boolean isLayerSelected(java.lang.String layerName)
          Checks if is layer selected.
 void resetLayers()
          Reset layers.
 void resetMeasures()
          Reset measures.
 void setClassName(java.lang.String className)
          Sets the class name.
 void setContextPath(java.lang.String contextPath)
          Sets the context path.
 void setParentConfiguration(MapConfiguration parentConfiguration)
          Sets the parent configuration.
 java.lang.String toXml()
          To xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapRendererConfiguration

public MapRendererConfiguration(MapConfiguration parentConfiguration)
Instantiates a new map renderer configuration.

Parameters:
parentConfiguration - the parent configuration

MapRendererConfiguration

public MapRendererConfiguration(MapConfiguration parentConfiguration,
                                it.eng.spago.base.SourceBean mapRendererConfigurationSB)
Instantiates a new map renderer configuration.

Parameters:
parentConfiguration - the parent configuration
mapRendererConfigurationSB - the map renderer configuration sb
Method Detail

addMeasure

public void addMeasure(MapRendererConfiguration.Measure measure)
Adds the measure.

Parameters:
measure - the measure

resetMeasures

public void resetMeasures()
Reset measures.


getMeasure

public MapRendererConfiguration.Measure getMeasure(java.lang.String measureName)
Gets the measure.

Parameters:
measureName - the measure name
Returns:
the measure

getLayer

public MapRendererConfiguration.Layer getLayer(java.lang.String layerName)
Gets the layer.

Parameters:
layerName - the layer name
Returns:
the layer

getKpiColour

public java.lang.String getKpiColour(java.lang.String measureName)
Gets the kpi colour.

Parameters:
measureName - the measure name
Returns:
the kpi colour

getKpiDescription

public java.lang.String getKpiDescription(java.lang.String measureName)
Gets the kpi description.

Parameters:
measureName - the measure name
Returns:
the kpi description

getLayerDescription

public java.lang.String getLayerDescription(java.lang.String layerName)
Gets the layer description.

Parameters:
layerName - the layer name
Returns:
the layer description

isLayerSelected

public boolean isLayerSelected(java.lang.String layerName)
Checks if is layer selected.

Parameters:
layerName - the layer name
Returns:
true, if is layer selected

getLayerDefaultFillColor

public java.lang.String getLayerDefaultFillColor(java.lang.String layerName)
Gets the layer default fill color.

Parameters:
layerName - the layer name
Returns:
the layer default fill color

resetLayers

public void resetLayers()
Reset layers.


addLayer

public void addLayer(MapRendererConfiguration.Layer layer)
Adds the layer.

Parameters:
layer - the layer

getLayerNames

public java.lang.String[] getLayerNames()
Gets the layer names.

Returns:
the layer names

getTresholdsArray

public java.lang.String[] getTresholdsArray(java.lang.String measureName)
Gets the tresholds array.

Parameters:
measureName - the measure name
Returns:
the tresholds array

getColoursArray

public java.lang.String[] getColoursArray(java.lang.String measureName)
Gets the colours array.

Parameters:
measureName - the measure name
Returns:
the colours array

getClassName

public java.lang.String getClassName()
Gets the class name.

Returns:
the class name

setClassName

public void setClassName(java.lang.String className)
Sets the class name.

Parameters:
className - the new class name

getContextPath

public java.lang.String getContextPath()
Gets the context path.

Returns:
the context path

setContextPath

public void setContextPath(java.lang.String contextPath)
Sets the context path.

Parameters:
contextPath - the new context path

getParentConfiguration

public MapConfiguration getParentConfiguration()
Gets the parent configuration.

Returns:
the parent configuration

setParentConfiguration

public void setParentConfiguration(MapConfiguration parentConfiguration)
Sets the parent configuration.

Parameters:
parentConfiguration - the new parent configuration

toXml

public java.lang.String toXml()
To xml.

Returns:
the string