|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.adf.web.wms.data.WMSOverviewFunctionality
| Field Summary |
| Fields inherited from interface com.esri.adf.web.data.OverviewFunctionality |
FUNCTIONALITY_NAME |
| Constructor Summary | |
WMSOverviewFunctionality()
|
|
| 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 overview map for the extent indicated by the WebOverview. |
GISResource |
getResource()
Returns the GISResource associated with this functionality. |
void |
initFunctionality(GISResource resource)
The initialization chores for the functionality must be performed in this method. |
boolean |
isDisabled()
Returns true if this overview functionality is disabled. |
void |
setDisabled(boolean disabled)
If true, this overview functionality is disabled. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WMSOverviewFunctionality()
| 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 boolean isDisabled()
OverviewFunctionality
Returns true if this overview functionality is disabled. If a overview functionality is disabled, the
WebOverview will not call the OverviewFunctionality.exportImage() on that functionality while it is disabled.
A overview functionality is typically disabled by using the "Disable Overview" context menu item on the resource node in the Table of Contents control. Similarly, the functionality can be enabled by using "Enable Overview".
isDisabled in interface OverviewFunctionalitypublic void setDisabled(boolean disabled)
OverviewFunctionality
If true, this overview functionality is disabled. If a overview functionality is disabled, the
WebOverview will not call the OverviewFunctionality.exportImage() on that functionality while it is disabled.
A overview functionality is typically disabled by using the "Disable Overview" context menu item on the resource node in the Table of Contents control. Similarly, the functionality can be enabled by using "Enable Overview".
setDisabled in interface OverviewFunctionalitydisabled - true if this overview functionality is disabledpublic java.io.InputStream exportImage()
OverviewFunctionality
Exports this overview map for the extent indicated by the WebOverview. Implementations should ensure the
following:
WebContext.
WebOverview. The
WebOverview.getDrawExtent() method can be used to get this extent.
WebMap, the image should
exported by setting its background color as the transparent color. The
WebOverview#isLastEnabledOverviewFunctionality(this) can be used to determine this condition.
The WebOverview calls this method on all its overview functionalities and eventually fuses all the exported
maps before streaming it to the user. This method is called by the WebOverview in these scenarios:
WebOverview is initialized
exportImage in interface OverviewFunctionalityjava.io.InputStream to the exported image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||