com.sas.graphics.components.esrimap
Class ESRIMapOLAPDataModel

com.sas.graphics.components.esrimap.ESRIMapOLAPDataModel

public class ESRIMapOLAPDataModel

This OLAP-specific data model is assigned to instances of OLAPESRIMapChart.

Usage

A ESRIMapOLAPDataModel can be assigned to an instance of the OLAPESRIMapChart class. Example:
 // Get the OLAPDataSetInterface
 OLAPDataSetInterface dsi = <...>;

 // Set up the Data Model
 ESRIMapOLAPDataModel dataModel = new ESRIMapOLAPDataModel();
 dataModel.setModel(dsi);
 
 // Associate the Data Model with a OLAPESRIMapChart
 OLAPESRIMapChart map = new OLAPESRIMapChart();
 map.setDataModel( dataModel );
 

Extending

This class is not intended to be subclassed.

Since:
SAS 9.1.3
See Also:
ESRIMapDataModel, OLAPESRIMapChart, BaseESRIMapChart

Constructor Summary
ESRIMapOLAPDataModel()
          Creates an empty instance of the data model.
ESRIMapOLAPDataModel(OLAPDataSetInterface newModel)
          Creates a new instance of this class, and sets the model to the specified OLAP data.
 
Method Summary
 com.sas.graphics.components.CategorizationModel getCategorizationModel()
          Returns the CategorizationModel used by the map to bucket it's data.
 java.util.Map getLayerToFieldMap()
          Returns the layerToFieldMap used by the map
 java.util.Map getLevelToLayerMap()
          Returns the levelToLayerMap used by the map
 OLAPDataSetInterface getModel()
          Returns the OLAP data referred to by this class.
 void setCategorizationModel(com.sas.graphics.components.CategorizationModel newModel)
          Sets the CategorizationModel used by the map to bucket it's data.
 void setLayerToFieldMap(java.util.Map hashMap)
          This is used to tell the map which field names to use for for each layer.
 void setLevelToLayerMap(java.util.Map hashMap)
          This is used to create the relationship between the OLAP cube and the map.
 void setModel(OLAPDataSetInterface newModel)
          Sets the OLAP data referred to by this class.
 
Methods inherited from class com.sas.graphics.components.esrimap.ESRIMapDataModel
getESRIConnection, setESRIConnection
 
Methods inherited from class com.sas.graphics.components.DataModel
apply, equals, getLocale, getRulesContext, getSortStrategy, hashCode, setLocale, setRulesContext, setSortStrategy
 
Methods inherited from class com.sas.graphics.components.ModelBase
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel
 

Constructor Detail

ESRIMapOLAPDataModel

public ESRIMapOLAPDataModel()
Creates an empty instance of the data model.


ESRIMapOLAPDataModel

public ESRIMapOLAPDataModel(OLAPDataSetInterface newModel)
Creates a new instance of this class, and sets the model to the specified OLAP data.

Parameters:
newModel - The new OLAP data
Method Detail

getModel

public OLAPDataSetInterface getModel()
Returns the OLAP data referred to by this class.

Returns:
Returns the model.

setModel

public void setModel(OLAPDataSetInterface newModel)
Sets the OLAP data referred to by this class.

Parameters:
newModel - The model to set.

setLevelToLayerMap

public void setLevelToLayerMap(java.util.Map hashMap)
This is used to create the relationship between the OLAP cube and the map. The map service must have equivalent geographical (hierarchical) information to the SAS cube. This is represented using a map linking the level names of the cube to the layer name on the map service. A typical entry in the Map might read: { "[geography].[usregion]", "usregions" }

See Also:
getLevelToLayerMap()

getLevelToLayerMap

public java.util.Map getLevelToLayerMap()
Returns the levelToLayerMap used by the map

Returns:
the map
See Also:
setLevelToLayerMap(java.util.Map)

getLayerToFieldMap

public java.util.Map getLayerToFieldMap()
Returns the layerToFieldMap used by the map

Returns:
the map
See Also:
setLayerToFieldMap(java.util.Map)

setLayerToFieldMap

public void setLayerToFieldMap(java.util.Map hashMap)
This is used to tell the map which field names to use for for each layer. This list must contain a list of field names associated with the map service layer in which they should be used. This tells the mapping code which variable to use for identifying features on this layer. A typical entry might read: { "USREGIONS", "SUB_REGION" } to indicate that the SUB_REGION field should be used on the USREGIONS layer.

See Also:
getLayerToFieldMap()

getCategorizationModel

public com.sas.graphics.components.CategorizationModel getCategorizationModel()
Returns the CategorizationModel used by the map to bucket it's data.

Returns:
The CategorizationModel
See Also:
CategorizationModel

setCategorizationModel

public void setCategorizationModel(com.sas.graphics.components.CategorizationModel newModel)
Sets the CategorizationModel used by the map to bucket it's data.

Parameters:
newModel - The new CategorizationModel



Copyright © 2009 SAS Institute Inc. All Rights Reserved.