|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.ags.data.image.AGSImageMapFunctionality
public class AGSImageMapFunctionality
This class connects to the Image Service to retrieve the map image. It allows you to configure properties like Compression Quality, Transparency, and the bands to be included in the image, etc.
<managed-bean>
<managed-bean-name>agsMap1</managed-bean-name>
<managed-bean-class>com.esri.adf.web.ags.data.image.AGSImageMapFunctionality</managed-bean-class>
<managed-bean-scope>none</managed-bean-scope>
<managed-property>
<property-name>transparency</property-name>
<value>1.0</value>
</managed-property>
<managed-property>
<property-name>compressionQuality</property-name>
<value>100</value>
</managed-property>
<managed-property>
<property-name>bandIDs</property-name>
<list-entries>
<value-class>int</value-class>
<value>0</value>
<value>1</value>
<value>2</value>
</list-entries>
</managed-property>
</managed-bean>
| Field Summary |
|---|
| Fields inherited from interface com.esri.adf.web.data.MapFunctionality |
|---|
FUNCTIONALITY_NAME |
| Fields inherited from interface com.esri.adf.web.data.export.ExportFunctionality |
|---|
EXPORT_FUNCTIONALITY_NAME |
| Constructor Summary | |
|---|---|
AGSImageMapFunctionality()
|
|
| Method Summary | |
|---|---|
void |
destroyFunctionality()
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. |
java.io.InputStream |
export(ExportProperties exportProperties)
|
java.io.InputStream |
exportImage()
Exports a map for the Image Service at the current extent. |
int[] |
getBandIDs()
Returns the band ID's. |
int |
getCompressionQuality()
Returns the compression quality of the image. |
com.esri.arcgisws.EnvelopeN |
getCurrentAGSExtent()
Returns the current extent as an EnvelopeN. |
WebExtent |
getCurrentExtent()
Returns the current extent of this map. |
WebExtent |
getCurrentExtentInContextSR()
Returns the current extent in the Web Context's spatial reference. |
WebExtent |
getFullExtent()
Returns the full extent of this map. |
WebExtent |
getInitialExtent()
Returns the initial extent of this map. |
java.lang.String |
getInterpolation()
Returns the interpolation. |
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. |
void |
setBandIDs(int[] bandIDs)
Sets the band ID's that will be included in the resulting image. |
void |
setCompressionQuality(int compressionQuality)
Sets the compression quality. |
void |
setCurrentAGSExtent(com.esri.arcgisws.EnvelopeN extent)
|
void |
setCurrentExtent(WebExtent newMapExtent)
Sets the current extent of this map. |
void |
setDisabled(boolean disabled)
If true, this map functionality is disabled. |
void |
setInterpolation(java.lang.String interpolation)
Sets the interpolation method. |
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 AGSImageMapFunctionality()
| 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 java.io.InputStream exportImage()
exportImage in interface MapFunctionalityjava.io.InputStream to the exported imagepublic java.io.InputStream export(ExportProperties exportProperties)
export in interface ExportFunctionalitypublic 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 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 WebExtent getCurrentExtentInContextSR()
MapFunctionality2Returns the current extent in the Web Context's spatial reference.
getCurrentExtentInContextSR in interface MapFunctionality2WebExtent of this mapWebContext.getSpatialReference()public 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 com.esri.arcgisws.EnvelopeN getCurrentAGSExtent()
EnvelopeN.
public void setCurrentAGSExtent(com.esri.arcgisws.EnvelopeN extent)
public 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. Note that transparency will not be applied for the lower most service. In a single service
application that service is the lower most service and hence transparency will not be applied for it.
getTransparency in interface MapFunctionalitypublic 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. Note that transparency will not be applied for the lower most service. In a single service
application that service is the lower most service and hence transparency will not be applied for it.
setTransparency in interface MapFunctionalitytransparency - the transparency factor for this map functionalitypublic 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 int getCompressionQuality()
public void setCompressionQuality(int compressionQuality)
compressionQuality - public java.lang.String getInterpolation()
public void setInterpolation(java.lang.String interpolation)
RstResamplingTypes for a complete list of values.
interpolation - public int[] getBandIDs()
public void setBandIDs(int[] bandIDs)
ImageServiceInfo.
bandIDs -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||