|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.data.graphics.GraphicsMapFunctionality
public class GraphicsMapFunctionality
GraphicsMapFunctionality provides mapping functionality for GraphicsResource.
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 | |
---|---|
GraphicsMapFunctionality()
|
Method Summary | |
---|---|
void |
destroyFunctionality()
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. |
InputStream |
export(ExportProperties exportProperties)
|
InputStream |
exportImage()
Exports this map for the provided export properties. |
ExportImage |
exportMapImage()
Returns a map image based on the current state (height, width, map extent, dpi, etc) of the WebMap . |
ExportImage |
exportMapImage(ExportProperties exportProperties)
Returns a map image based parameters (height, width, map extent, dpi, etc) specified in the exportProperties argument. |
WebExtent |
getCurrentExtent()
Returns the current extent of this map. |
WebExtent |
getFullExtent()
Returns the full extent of this map. |
WebExtent |
getInitialExtent()
Returns the initial extent of this map. |
double |
getMapScale()
Returns the current scale of this map. |
GraphicsResource |
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 |
setCurrentExtent(WebExtent newMapExtent)
Sets the current extent of this map. |
void |
setDisabled(boolean disabled)
If true, this map functionality is disabled. |
void |
setFullExtent(WebExtent fullExtent)
Sets full extent of the map. |
void |
setInitialExtent(WebExtent initialExtent)
|
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 GraphicsMapFunctionality()
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 GISFunctionality
resource
- the GISResource
that this functionality supportsGISResource.init(WebContext)
public GraphicsResource 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 GISFunctionality
GISResource
associated with this functionalitypublic 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 GISFunctionality
GISResource.destroy()
public InputStream exportImage()
Exports this map for the provided export properties.
The image format is set to PNG regardless of what is set in the export properties
When this resource is at the bottom and enabled, an opaque image is blended with it to provide a non-transparent
background
exportImage
in interface MapFunctionality
java.io.InputStream
to the exported image. public InputStream export(ExportProperties exportProperties)
export
in interface ExportFunctionality
public ExportImage exportMapImage()
ExportFunctionality2
WebMap
.
exportMapImage
in interface ExportFunctionality2
public ExportImage exportMapImage(ExportProperties exportProperties)
ExportFunctionality2
WebMap
.
exportMapImage
in interface ExportFunctionality2
public double getMapScale()
MapFunctionality
Returns the current scale of this map.
getMapScale
in interface MapFunctionality
public WebExtent getCurrentExtent()
MapFunctionality
Returns the current extent of this map.
getCurrentExtent
in interface MapFunctionality
WebExtent
of this mappublic void setCurrentExtent(WebExtent newMapExtent)
MapFunctionality
Sets the current extent of this map.
setCurrentExtent
in interface MapFunctionality
newMapExtent
- the current WebExtent
of this mappublic WebExtent getFullExtent()
MapFunctionality
Returns the full extent of this map.
Typically, this extent should be determined by the functionality when it is initialized.
getFullExtent
in interface MapFunctionality
WebExtent
of this mappublic void setFullExtent(WebExtent fullExtent)
fullExtent
- full extent of the map.public WebExtent getInitialExtent()
MapFunctionality
Returns the initial extent of this map.
Typically, this extent should be determined by the functionality when it is initialized.
getInitialExtent
in interface MapFunctionality
WebExtent
of this mappublic void setInitialExtent(WebExtent initialExtent)
public 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 MapFunctionality
public 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 MapFunctionality
disabled
- true if this map functionality is disabledpublic double getTransparency()
MapFunctionality
Returns 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 MapFunctionality
public void setTransparency(double transparency)
MapFunctionality
Sets 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 MapFunctionality
transparency
- the transparency factor for this map functionality
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |