|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.graphics.BaseESRIMapChart
public abstract class BaseESRIMapChart
BaseESRIMapChart is a base class for the OLAP and relational ESRIMap tbeans. It contains the shared features of the two classes.
Note. This class contains an ESRIMapDataModel for the ESRIMap's data properties, and an ESRIMapModel for it's presentation properties.
It is also possible to directly use the image renderer class, com.sas.graphics.map.ESRIMap class.
ESRIMapModel
,
ESRIMapDataModel
,
OLAPESRIMapChart
,
GraphStyle
,
Serialized FormField Summary | |
---|---|
protected GraphStyle |
graphStyle
|
protected java.awt.Dimension |
legendSize
|
protected int |
mode
|
Constructor Summary | |
---|---|
BaseESRIMapChart()
Creates a new, empty instance of the (abstract) BaseESRIMapChart |
Method Summary | |
---|---|
void |
applyGraphStyle(GraphStyle style)
Applies a GraphStyle object to the map. |
ESRIMapDataModel |
getDataModel()
Returns the current data model. |
java.util.HashMap |
getDefaultLayerVisibilities()
Gets a list of the layers available on the map service, and a value indicating their default visibility. |
ESRIMapModel |
getGraphModel()
Returns the ESRIMapModel that is currently being used to control the map's display properties. |
java.lang.String |
getImageLocation()
Returns the image location used by the map. |
java.util.HashMap |
getLayerVisibilities()
Gets a list of the layers available on the map service, and a value indicating their visibility. |
byte[] |
getLegendImageMimeData()
Returns the MIME image data for the most recently rendered legend. |
java.awt.Dimension |
getLegendSize()
This is a convenience method used to retrieve the previously-calculated legend size. |
java.util.Locale |
getLocale()
Returns the Locale |
double[] |
getMapExtents()
Returns the current extents of the displayed map. |
byte[] |
getMapImageMimeData()
Returns the MIME image data for the last rendered map |
java.awt.Dimension |
getMapSize()
This is a convenience method used to retrieve the previously-calculated map size. |
java.util.Map |
getStyleMap()
Returns the styleMap used by the ESRIMapChart. |
boolean |
isAutoZoom()
Returns whether the map will autozoom during the next refresh. |
boolean |
isDebug()
Returns whether the map is in debug mode. |
boolean |
isDisabledImage()
Returns whether the image is currently set to be disabled. |
boolean |
isRedrawMap()
Returns whether the ESRIMapChart currently needs to be redrawn. |
boolean |
isUseSession()
Returns whether the map should use the HttpSession object to save needed state. |
abstract void |
printDebugInfo(ESRIMap map)
Prints out debug information about the component and the passed-in ESRIMap. |
void |
setAutoZoom(boolean autoZoom)
Sets whether the map should zoom into the extents of the data after some action. |
void |
setDataModel(ESRIMapDataModel model)
Sets the data model on the viewer. |
void |
setDebug(boolean debug)
Sets whether the map should print debug information in normal run-time operation. |
void |
setDisabledImage(boolean disabledImage)
Sets whether the map image tag created should be disabled. |
void |
setGraphModel(ESRIMapModel m)
Sets a ESRIMapModel to control the map's display properties |
void |
setImageLocation(java.lang.String imageLocation)
Sets the image location used by the map. |
void |
setLayerVisibilities(java.util.HashMap hash)
Sets the visibilities of the layers using the passed-in HashMap. |
void |
setLayerVisibility(java.lang.String layer,
java.lang.String visible)
Sets the visibility of the layer. |
void |
setLocale(java.util.Locale loc)
Sets the Locale. |
void |
setMapExtents(double[] extents)
Sets the current extents of the displayed map, in map coordinates. |
void |
setMapExtents(double xmin,
double xmax,
double ymin,
double ymax)
Sets the current extents of the displayed map, in map coordinates. |
void |
setRedrawMap(boolean redrawMap)
Sets whether the ESRIMapChart should redraw itself, or simply used any avialable cached image. |
void |
setSize(int width,
int height)
This sets the size of the MapChart. |
void |
setStyleMap(StyleMap styleMap)
Sets the StyleMap on the ESRIMapChart. |
void |
setUseSavedMapExtents(boolean useSavedMapExtents)
Sets the flag that determines whether the map should use any saved map extents. |
void |
setUseSession(boolean useSession)
Sets whether the map should use the HttpSession object to save needed state. |
Methods inherited from class com.sas.servlet.tbeans.BaseActionTransformation |
---|
dispose, getActionProvider, getActionSupportType, getUniqueId, isActionVisible, listActionTypes, listAreaTypes, setActionProvider, setActionSupportType, setActionVisible, setUniqueId, write |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
---|
getRequest, setRequest |
Field Detail |
---|
protected int mode
protected java.awt.Dimension legendSize
protected GraphStyle graphStyle
Constructor Detail |
---|
public BaseESRIMapChart()
Method Detail |
---|
public java.util.Map getStyleMap()
public void setStyleMap(StyleMap styleMap)
styleMap
- The styleMap to set.public boolean isRedrawMap()
public void setRedrawMap(boolean redrawMap)
redrawMap
- public boolean isAutoZoom()
setAutoZoom(boolean)
public void setAutoZoom(boolean autoZoom)
autoZoom
- The autoZoom to set.isAutoZoom()
public void setGraphModel(ESRIMapModel m)
m
- ESRIMapModel to control the map's display propertiespublic ESRIMapModel getGraphModel()
public void setDataModel(ESRIMapDataModel model)
model
- An instance of the ESRIMapDataModelESRIMapDataModel
public ESRIMapDataModel getDataModel()
ESRIMapDataModel
public void setMapExtents(double xmin, double xmax, double ymin, double ymax)
xmin
- Minimum X valuexmax
- Maximum X valueymin
- Minimum Y valueymax
- Maximum Y Valuepublic double[] getMapExtents()
public void setMapExtents(double[] extents)
extents
- The new map extentspublic void setUseSavedMapExtents(boolean useSavedMapExtents)
useSavedMapExtents
- public void setSize(int width, int height)
setSize
in class com.sas.servlet.tbeans.graphics.BaseGraphics
width
- The chart widthheight
- The chart heightBaseGraphics.setSize(int, int)
,
getMapSize()
,
getLegendSize()
public java.awt.Dimension getMapSize()
public java.awt.Dimension getLegendSize()
public byte[] getLegendImageMimeData()
public byte[] getMapImageMimeData()
public java.util.HashMap getLayerVisibilities()
setLayerVisibilities(HashMap)
,
setLayerVisibility(String, String)
,
ESRIConnection
public java.util.HashMap getDefaultLayerVisibilities()
setLayerVisibilities(HashMap)
,
setLayerVisibility(String, String)
,
ESRIConnection
public void setLayerVisibility(java.lang.String layer, java.lang.String visible)
layer
- visible
- setLayerVisibilities(HashMap)
public void setLayerVisibilities(java.util.HashMap hash)
hash
- setLayerVisibility(String, String)
,
getLayerVisibilities()
public boolean isUseSession()
public void setUseSession(boolean useSession)
useSession
- The useSession to set.public void applyGraphStyle(GraphStyle style)
applyGraphStyle
in class com.sas.servlet.tbeans.graphics.BaseGraph
style
- class containing a set of visual attributes for the charts.BaseGraph.applyGraphStyle(com.sas.graphics.components.GraphStyle)
public void setLocale(java.util.Locale loc)
setLocale
in interface TransformationInterface
setLocale
in class BaseTransformation
loc
- The new Locale to use.public java.util.Locale getLocale()
getLocale
in interface TransformationInterface
getLocale
in class BaseTransformation
public java.lang.String getImageLocation()
public void setImageLocation(java.lang.String imageLocation)
imageLocation
- The imageLocation to set.public boolean isDisabledImage()
setDisabledImage(boolean)
public void setDisabledImage(boolean disabledImage)
disabledImage
- Whether to mark the image as disabled.public abstract void printDebugInfo(ESRIMap map)
map
- public boolean isDebug()
public void setDebug(boolean debug)
debug
- The debug to set.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |