|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.adf.web.aims.data.AIMSMapFunctionality
The AIMSMapFunctionality maintains the reference to
the Map object.
When initFunctionality(com.esri.adf.web.data.GISResource) method is called, the GET_SERVICE_INFO request is sent to the ArcIMS Server.
Calling exportImage(), the GET_IMAGE AXL request is sent to the ArcIMS Server.
ArcIMS Map Functionality can be added using JSF managed bean configuration as shown below,
<managed-bean>
<managed-bean-name>aimsMap</managed-bean-name>
<managed-bean-class>com.esri.adf.web.aims.data.AIMSMapFunctionality</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>loadRecordSet</property-name>
<value>true</value>
</managed-property>
<managed-property>
<property-name>loadExtensions</property-name>
<value>true</value>
</managed-property>
</managed-bean>
| Field Summary |
| Fields inherited from interface com.esri.adf.web.data.MapFunctionality |
FUNCTIONALITY_NAME |
| Constructor Summary | |
AIMSMapFunctionality()
|
|
| Method Summary | |
void |
destroyFunctionality()
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. |
java.io.InputStream |
exportImage()
Exports this map for the current extent. |
WebExtent |
getCurrentExtent()
Returns the current extent of this map. |
java.lang.String |
getDefaultDataFrame()
Returns the default dataframe name. |
int |
getDPI()
Returns the DPI from the map functionality. |
WebExtent |
getFullExtent()
Returns the full extent of this map. |
WebExtent |
getInitialExtent()
Returns the initial extent of this map. |
com.esri.aims.mtier.model.map.layer.Layer |
getLayer(java.lang.String layerId)
Returns Layer object based on the specified layerId. |
com.esri.aims.mtier.model.map.Map |
getMap()
Returns the Map object. |
double |
getMapScale()
Returns the current scale of this map. |
GISResource |
getResource()
Returns the GISResource associated with this functionality. |
double |
getTransparency()
Returns the transparency factor for this map functionality. |
void |
initFunctionality(GISResource resource)
The initialization chores for the functionality must be performed in this method. |
boolean |
isDisabled()
Returns true if this map functionality is disabled. |
boolean |
isLoadEnvelope()
Returns true, if envelope information is available for all layers. |
boolean |
isLoadExtensions()
Returns true, if extensions information is available for all layers. |
boolean |
isLoadFields()
Returns true, if fields information is available for all layers. |
boolean |
isLoadRenderer()
Returns true, if renderer information is available for all layers. |
void |
setCurrentExtent(WebExtent newMapExtent)
Sets the current extent of this map. |
void |
setDefaultDataFrame(java.lang.String defaultDataFrame)
Sets the default data frame in which the map functionality should work with. |
void |
setDisabled(boolean disabled)
If true, this map functionality is disabled. |
void |
setDPI(int dpi)
Sets the DPI(dots per square inch) for the output image. |
void |
setLoadEnvelope(boolean loadEnvelope)
If true, loads the envelope information for all layers. |
void |
setLoadExtensions(boolean loadExtensions)
If true, loads the extensions information for all layers. |
void |
setLoadFields(boolean loadFields)
If true, loads the fields information for all layers. |
void |
setLoadRenderer(boolean loadRenderer)
If true, loads the renderer information for all layers. |
void |
setTransparency(double transparency)
Sets the transparency factor for this map functionality. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AIMSMapFunctionality()
| Method Detail |
public void initFunctionality(GISResource resource)
GISFunctionality
The initialization chores for the functionality must be performed in this method. This method is called by the
resource when the functionality needs to be initialized. This happens either when the resource
itself is being initialized or if users add this functionality to the resource using the
GISResource.addFunctionality(String, GISFunctionality) method after the resource has already
been initialized.
Classes which implement this method should maintain the resource as a class instance variable and
return the same in the GISFunctionality.getResource() method. The functionality is ready for use only after this method has
been called.
initFunctionality in interface GISFunctionalityresource - the GISResource that this functionality supportsGISResource.init(WebContext)public void destroyFunctionality()
GISFunctionality
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. This
method is called by the GISResource when the resource itself is being destroyed.
The functionality is no longer usable after this method has been called.
destroyFunctionality in interface GISFunctionalityGISResource.destroy()public GISResource getResource()
GISFunctionality
Returns the GISResource associated with this functionality.
The resource passed to GISFunctionality.initFunctionality(GISResource) is maintained as a class variable and is accessible
through this method.
getResource in interface GISFunctionalityGISResource associated with this functionalitypublic WebExtent getCurrentExtent()
MapFunctionalityReturns the current extent of this map.
getCurrentExtent in interface MapFunctionalityWebExtent of this mappublic void setCurrentExtent(WebExtent newMapExtent)
MapFunctionalitySets the current extent of this map.
setCurrentExtent in interface MapFunctionalitynewMapExtent - the current WebExtent of this mappublic WebExtent getFullExtent()
MapFunctionalityReturns the full extent of this map.
Typically, this extent should be determined by the functionality when it is initialized.
getFullExtent in interface MapFunctionalityWebExtent of this mappublic WebExtent getInitialExtent()
MapFunctionalityReturns the initial extent of this map.
Typically, this extent should be determined by the functionality when it is initialized.
getInitialExtent in interface MapFunctionalityWebExtent of this mappublic boolean isDisabled()
MapFunctionality
Returns true if this map functionality is disabled. If a map functionality is disabled, the WebMap will not
call the MapFunctionality.exportImage() on that functionality while it is disabled.
A map functionality is typically disabled by unchecking the resource node in the Table of Contents control.
isDisabled in interface MapFunctionalitypublic void setDisabled(boolean disabled)
MapFunctionality
If true, this map functionality is disabled. If a map functionality is disabled, the WebMap will not call
the MapFunctionality.exportImage() on that functionality while it is disabled.
A map functionality is typically disabled by unchecking the resource node in the Table of Contents control.
setDisabled in interface MapFunctionalitydisabled - true if this map functionality is disabledpublic double getMapScale()
MapFunctionalityReturns the current scale of this map.
getMapScale in interface MapFunctionalitypublic java.io.InputStream exportImage()
MapFunctionalityExports this map for the current extent. Implementations should ensure the following:
WebContext.
WebMap, the image should exported
by setting its background color as the transparent color. The WebMap#isLastEnabledMapFunctionality(this)
can be used to determine this condition.
The WebMap calls this method on all its map functionalities and eventually fuses all the exported maps
before streaming it to the user.
exportImage in interface MapFunctionalityjava.io.InputStream to the exported imagepublic com.esri.aims.mtier.model.map.Map getMap()
Map object.
public void setDPI(int dpi)
dpi - the DPI for the output imagepublic int getDPI()
public void setLoadEnvelope(boolean loadEnvelope)
loadEnvelope - if true, loads the envelope information for all layerspublic boolean isLoadEnvelope()
public void setLoadRenderer(boolean loadRenderer)
loadRenderer - if true, loads the renderer information for all layerspublic boolean isLoadRenderer()
public void setLoadFields(boolean loadFields)
If the associated resource includes the ArcIMS Query functionality, then this property should set to true in order to perform query.
loadFields - if true, loads the fields information for all layerspublic boolean isLoadFields()
public void setLoadExtensions(boolean loadExtensions)
If the associated resource includes the ArcIMS Geocode functionality, then this property should set to true in order to perform geocoding.
loadExtensions - if true, loads the extensions information for all layerspublic boolean isLoadExtensions()
public void setDefaultDataFrame(java.lang.String defaultDataFrame)
This property is valid only if the associated resource service type is ImageServerArcMap.
defaultDataFrame - the default dataframe namepublic java.lang.String getDefaultDataFrame()
public void setTransparency(double transparency)
MapFunctionalitySets the transparency factor for this map functionality. Valid values are from 0.0 through 1.0. A value of 1 means it is completely opaque while a value of 0 means it is completely transparent.
The WebMap uses this value after the map image has been exported and applies the transparency
appropriately.
setTransparency in interface MapFunctionalitytransparency - the transparency factor for this map functionalitypublic double getTransparency()
MapFunctionalityReturns the transparency factor for this map functionality. Valid values are from 0.0 through 1.0. A value of 1 means it is completely opaque while a value of 0 means it is completely transparent.
The WebMap uses this value after the map image has been exported and applies the transparency
appropriately.
getTransparency in interface MapFunctionalitypublic com.esri.aims.mtier.model.map.layer.Layer getLayer(java.lang.String layerId)
Layer object based on the specified layerId.
layerId - the layer id
Layer object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||