|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.AimsMap
The AimsMap class contains the complete instance of an ArcIMS map service, and modifications to the map layers, etc. that have been done during an application session. If the current state of the map is needed in subsequent pages, this object should be stored in the session object.
| Field Summary | |
static int |
LAYOUT_TYPE_AI
|
static int |
LAYOUT_TYPE_BMP
|
static int |
LAYOUT_TYPE_EMF
|
static int |
LAYOUT_TYPE_EPS
|
static int |
LAYOUT_TYPE_JPG
|
static int |
LAYOUT_TYPE_PDF
|
static int |
LAYOUT_TYPE_PNG24
|
static int |
LAYOUT_TYPE_PNG8
|
| Constructor Summary | |
AimsMap()
Creates a new AimsMap object - note: for debugging purposes only. |
|
AimsMap(AimsMap map)
Creates a new map object using selected settings from another. |
|
AimsMap(java.lang.String mapService)
Creates a new AimsMap object with a map serviceusing the default map server (localhost) and the default ESRI servlet path of /servlet/com.esri.esrimap.Esrimap |
|
AimsMap(java.lang.String mapServer,
java.lang.String mapService)
Creates a new AimsMap object with a mapserver name and map service, uses the default ESRI servlet path of /servlet/com.esri.esrimap.Esrimap |
|
AimsMap(java.lang.String mapServer,
java.lang.String mapService,
java.lang.String mapServlet)
Creates a new AimsMap object with a map server name, map service name, and servlet path |
|
AimsMap(java.lang.String mapServer,
java.lang.String mapService,
java.lang.String mapServlet,
java.lang.String mapDataFrame)
Creates a new AimsMap object with a map server name, map service name, servlet path, and data frame name (ArcMap services only). |
|
AimsMap(java.lang.String mapServer,
java.lang.String mapService,
java.lang.String mapServlet,
java.lang.String mapDataFrame,
java.lang.String user,
java.lang.String password)
Creates a new AimsMap object with a map server name, map service name, servlet path, data frame name (ArcMap services only), and authenticator (for ACL protected services). |
|
| Method Summary | |
void |
centerAt(double mapX,
double mapY)
re-centre the map at the (x,y) in map units |
void |
clearAlertMessage()
|
void |
doZoom(double mapX,
double mapY,
double zoomFactor)
Changes the extent of the map, leaving the centre point the same. |
protected java.lang.String |
getAclPassword()
Gets the user password for restricted services. |
protected java.lang.String |
getAclUser()
Gets the user name for restricted services. |
java.lang.String |
getAlertMessage()
Gets the alert message resulting from a zoom command. |
java.lang.String |
getArcMapDataFrame()
|
AimsColor |
getBackgroundColor()
Gets the background color of the map. |
AimsColor |
getBackgroundTransColor()
Gets the background transparent color of the map. |
java.lang.String |
getDebugComment()
|
boolean |
getDrawMap()
Gets whether the map image is created. |
AimsEnvironment |
getEnvironment()
Gets the environment of the map |
AimsEnvelope |
getExtent()
Gets an Envelope containg the current extent of the map in mapunits. |
AimsCoordsys |
getFeatureCoordsys()
Gets the featurecoordsys for the map. |
java.lang.String |
getFile()
Gets the path to the image file created by the refresh() method. |
AimsCoordsys |
getFilterCoordsys()
Gets the filtercoordsys for the map. |
AimsFolders |
getFolders()
Gets the AimsFolders associated with the map. |
java.lang.String |
getFrameworkUrlPath()
|
AimsEnvelope |
getFullExtent()
Returns an Envelope object containing the full extent of the map. |
java.lang.String |
getGeocodeRequestAxl()
|
java.lang.String |
getGeocodeResponseAxl()
|
int |
getHeight()
Gets the height of the map in pixels. |
java.awt.image.BufferedImage |
getImage()
|
java.lang.String |
getImageType()
Gets the image type as indicated by the type attribute of a GET_IMAGE response. |
java.lang.String |
getImageUrl()
|
AimsLayerGroups |
getLayerGroups()
Gets the AimsLayerGroups associated with the map. |
AimsLayers |
getLayers()
Returns the layers present in the map. |
java.lang.String |
getLayerUrlPath()
|
boolean |
getLayout(AimsMxdTemplate template,
double scale,
int type)
|
boolean |
getLayout(double scale,
int type)
|
boolean |
getLayout(java.lang.String server,
java.lang.String service,
java.lang.String servlet,
java.lang.String dataframe,
double scale,
int type)
|
java.lang.String |
getLayoutRequestAxl()
|
java.lang.String |
getLayoutResponseAxl()
|
java.lang.String |
getLayoutUrl()
|
AimsLegend |
getLegend()
Gets the Legend object associated to this map. |
java.lang.String |
getMapDataframe()
Gets the dataframe associated to this map. |
java.lang.String |
getMapServer()
Gets the ArcIMS server associated to this map. |
java.lang.String |
getMapService()
Gets the ArcIMS service associated to this map. |
java.lang.String |
getMapServlet()
Gets the ArcIMS servlet path associated to this map. |
java.awt.geom.AffineTransform |
getMapTransform()
Returns an AffineTransform for use to convert page units to map units. |
java.lang.String |
getMapUnits()
Returns the mapunits used in this map (eg. |
AimsEnvelope |
getMaximumExtent()
Returns an Envelope object containing the maximum extent of the map. |
java.awt.geom.AffineTransform |
getPageTransform()
Returns an AffineTransform for use to convert map units to page units. |
int |
getPrintDpi()
Gets the print dpi for the map |
int |
getPrintHeight()
Gets the print height for the map |
int |
getPrintWidth()
Gets the print width for the map |
AimsProjection |
getProjection()
|
java.lang.String |
getRasterInfoRequestAxl()
|
java.lang.String |
getRasterInfoResponseAxl()
|
java.lang.String |
getRecordsetRequestAxl()
|
java.lang.String |
getRecordsetResponseAxl()
|
java.lang.String |
getRequestAxl()
|
java.lang.String |
getResponseAxl()
|
double |
getScale()
Gets the map scale if the mapunits are metres. |
double |
getScale(double scaleFactor)
Gets the map scale of a given scaleFactor if the mapunits are metres. |
double |
getScaleFactor()
The mapunits per pixel map scale factor. |
double |
getScaleFactor(double scale)
Gets the mapunits per pixel map scale factor for a given map scale. |
java.lang.String |
getServiceInfoAxl()
|
java.lang.Object |
getTag()
Gets the user defined object tag assosciated with this object. |
java.lang.String |
getTempDir()
Gets the temporary directory for image streaming. |
java.lang.String |
getTempUrlPath()
Gets the temporary url path for image streaming. |
java.lang.String |
getUrl()
Gets the url of the image file created by the refresh() method. |
int |
getWidth()
Gets the width of the map in pixels. |
AimsWorkspaces |
getWorkspaces()
Gets the workspaces added for dynamic layer support. |
boolean |
initMap()
Initializes the map object with the results of the GET_SERVICE_INFO request. |
boolean |
isDynamic()
Returns a boolean value indicating whether layers can be added to the map service. |
boolean |
isLayerVisible(java.lang.String layerNameAliasOrId)
Returns whether a named layer is visible (visible=true) |
boolean |
isLayerWithinThreshold(AimsLayer layer)
Returns whether a named layer is within threshold tolerance. |
boolean |
isLayerWithinThreshold(java.lang.String layerNameAliasOrId)
Returns whether a named layer is within threshold tolerance. |
protected AimsEnvelope |
popPreviousExtent()
Gets an extent from the previous extent stack so that the zoomToPreviousExtent() method can zoom to previous extents. |
void |
reaspect()
Adjusts the map extent to match the same aspect ratio as the image size. |
boolean |
refresh()
Refreshes the map to produce new map and legend images. |
void |
setAclPassword(java.lang.String password)
Sets the user password for restricted services. |
void |
setAclUser(java.lang.String user)
Sets the user name for restricted services. |
void |
setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value,
java.lang.String server)
Sets one of the attributes of this object using a string value. |
void |
setBackgroundColor(AimsColor color)
Sets the background color of the map. |
void |
setBackgroundTransColor(AimsColor color)
Sets the background transparent color of the map. |
void |
setDrawMap(boolean drawMap)
Sets whether the map image is created. |
void |
setEnvironment(AimsEnvironment env)
Sets the environment of the map |
void |
setExtent(AimsEnvelope env)
Sets the current extent of the map (mapunits). |
void |
setExtentNoClip(AimsEnvelope env)
Sets the current extent of the map (mapunits) without clipping to the maximum extent. |
void |
setFeatureCoordsys(AimsCoordsys coordsys)
Sets the featurecoordsys for the map. |
void |
setFile(java.lang.String file)
Sets the url of the image response. |
void |
setFilterCoordsys(AimsCoordsys coordsys)
Sets the filtercoordsys for the map. |
void |
setFolders(AimsFolders folders)
Sets the folders associated with this map. |
void |
setFrameworkUrlPath(java.lang.String frameworkPath)
|
void |
setFullExtent(AimsEnvelope env)
Sets the full extent of the map. |
protected void |
setGeocodeRequestAxl(java.lang.String request)
|
protected void |
setGeocodeResponseAxl(java.lang.String response)
|
void |
setHeight(int height)
Sets the height of the map in pixels. |
void |
setInitialExtent(AimsEnvelope env)
Sets the initial extent of the map. |
protected void |
setLayerGroups(AimsLayerGroups groups)
Sets the layer groups associated with this map. |
void |
setLayerUrlPath(java.lang.String layerPath)
|
void |
setLayoutUrl(java.lang.String url)
|
void |
setLegend(AimsLegend legend)
Sets the Legend object associated to this map. |
void |
setMapUnits(java.lang.String mapunits)
Sets the mapunits used in this map (eg. |
void |
setMaximumExtent(AimsEnvelope env)
Sets the maximum extent of the map. |
void |
setMaximumScale(double scale)
|
void |
setMinimumScale(double scale)
|
void |
setPrintSizeMultiplier(double factor)
Sets the printed output map size as a multiplier of the current map size. |
void |
setProjection(AimsProjection projection)
|
protected void |
setRasterInfoRequestAxl(java.lang.String request)
|
protected void |
setRasterInfoResponseAxl(java.lang.String response)
|
protected void |
setRecordsetRequestAxl(java.lang.String request)
|
protected void |
setRecordsetResponseAxl(java.lang.String response)
|
protected void |
setRequestAxl(java.lang.String request)
|
protected void |
setResponseAxl(java.lang.String response)
|
void |
setScale(double scale)
Sets the map to the specified scale |
void |
setTag(java.lang.Object tag)
Sets the user defined object associated to this object. |
void |
setTempDir(java.lang.String dir)
Sets the temporary directory for image streaming. |
void |
setTempUrlPath(java.lang.String path)
Sets the temporary path for image streaming. |
void |
setUrl(java.lang.String url)
Sets the url of the image response. |
void |
setWidth(int width)
Sets the width of the map in pixels. |
java.lang.String |
toString()
Returns a text representation of of this class. |
void |
zoomToBC()
Sets the map extent to the extent of the province of British Columbia. |
void |
zoomToExtent(double x1,
double y1,
double x2,
double y2)
Sets the map extent to user coordinates. |
void |
zoomToFullExtent()
Sets the map extent to the original extent as read from the map service. |
void |
zoomToMapsheet(java.lang.String mapsheet)
Sets the map extent to the extent of a mapsheet. |
void |
zoomToPreviousExtent()
Sets the map extent to an extent from the previous extent stack, and removes the extent from the stack. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int LAYOUT_TYPE_AI
public static final int LAYOUT_TYPE_BMP
public static final int LAYOUT_TYPE_EMF
public static final int LAYOUT_TYPE_EPS
public static final int LAYOUT_TYPE_JPG
public static final int LAYOUT_TYPE_PDF
public static final int LAYOUT_TYPE_PNG8
public static final int LAYOUT_TYPE_PNG24
| Constructor Detail |
public AimsMap(AimsMap map)
map - The other map object.public AimsMap()
public AimsMap(java.lang.String mapService)
mapService - The name of the map service used by this map.
public AimsMap(java.lang.String mapServer,
java.lang.String mapService)
mapServer - The name or IP address of the map server.mapService - The name of the map service used by this map.
public AimsMap(java.lang.String mapServer,
java.lang.String mapService,
java.lang.String mapServlet)
mapServer - The name or IP address of the map server.mapService - The name of the map service used by this map.mapServlet - The path of the map servlet.
public AimsMap(java.lang.String mapServer,
java.lang.String mapService,
java.lang.String mapServlet,
java.lang.String mapDataFrame)
mapServer - The name or IP address of the map server.mapService - The name of the map service used by this map.mapServlet - The path of the map servlet.mapDataFrame - The data frame name in the ArcMap service.
public AimsMap(java.lang.String mapServer,
java.lang.String mapService,
java.lang.String mapServlet,
java.lang.String mapDataFrame,
java.lang.String user,
java.lang.String password)
mapServer - The name or IP address of the map server.mapService - The name of the map service used by this map.mapServlet - The path of the map servlet.mapDataFrame - The data frame name in the ArcMap service.| Method Detail |
public java.lang.String getLayoutUrl()
public void setLayoutUrl(java.lang.String url)
public boolean getLayout(double scale,
int type)
public boolean getLayout(AimsMxdTemplate template,
double scale,
int type)
public boolean getLayout(java.lang.String server,
java.lang.String service,
java.lang.String servlet,
java.lang.String dataframe,
double scale,
int type)
public void reaspect()
public java.lang.String getTempDir()
public void setTempDir(java.lang.String dir)
dir - The name of the temporary directory.public java.lang.String getTempUrlPath()
public void setTempUrlPath(java.lang.String path)
path - The name of the temporary path.protected java.lang.String getAclUser()
public void setAclUser(java.lang.String user)
user - The user name.protected java.lang.String getAclPassword()
public void setAclPassword(java.lang.String password)
public AimsCoordsys getFeatureCoordsys()
public AimsCoordsys getFilterCoordsys()
public void setFeatureCoordsys(AimsCoordsys coordsys)
public void setFilterCoordsys(AimsCoordsys coordsys)
public java.lang.String getArcMapDataFrame()
public void setEnvironment(AimsEnvironment env)
env - The environment object for this map.public AimsEnvironment getEnvironment()
public java.lang.String getLayerUrlPath()
public void setLayerUrlPath(java.lang.String layerPath)
public java.lang.String getFrameworkUrlPath()
public void setFrameworkUrlPath(java.lang.String frameworkPath)
public void setDrawMap(boolean drawMap)
drawMap - True if the map image should be created, otherwise false.public boolean getDrawMap()
public boolean isDynamic()
public AimsProjection getProjection()
public void setProjection(AimsProjection projection)
protected AimsEnvelope popPreviousExtent()
protected void setRequestAxl(java.lang.String request)
protected void setResponseAxl(java.lang.String response)
protected void setGeocodeRequestAxl(java.lang.String request)
public java.lang.String getGeocodeRequestAxl()
protected void setGeocodeResponseAxl(java.lang.String response)
public java.lang.String getGeocodeResponseAxl()
protected void setRasterInfoRequestAxl(java.lang.String request)
public java.lang.String getRasterInfoRequestAxl()
protected void setRasterInfoResponseAxl(java.lang.String response)
public java.lang.String getRasterInfoResponseAxl()
public java.lang.String getLayoutRequestAxl()
public java.lang.String getLayoutResponseAxl()
protected void setRecordsetRequestAxl(java.lang.String request)
public java.lang.String getRecordsetRequestAxl()
protected void setRecordsetResponseAxl(java.lang.String response)
public java.lang.String getRecordsetResponseAxl()
public java.lang.String getRequestAxl()
public java.lang.String getServiceInfoAxl()
public java.lang.String getResponseAxl()
public void setBackgroundColor(AimsColor color)
color - The background color of the map.public void setBackgroundTransColor(AimsColor color)
color - The background transparent color of the map.public AimsColor getBackgroundColor()
public AimsColor getBackgroundTransColor()
public AimsFolders getFolders()
public void setFolders(AimsFolders folders)
public AimsLayerGroups getLayerGroups()
protected void setLayerGroups(AimsLayerGroups groups)
public java.lang.Object getTag()
public void setTag(java.lang.Object tag)
tag - Any Object.public java.lang.String getMapServer()
public java.lang.String getMapService()
public java.lang.String getMapServlet()
public java.lang.String getMapDataframe()
public AimsLegend getLegend()
public void setLegend(AimsLegend legend)
legend - The Legend object associated to this map.public java.lang.String getUrl()
public java.lang.String getImageType()
public void setUrl(java.lang.String url)
url - The URL to the image.public void setFile(java.lang.String file)
file - The file of the image.public java.lang.String getFile()
public java.lang.String getDebugComment()
public boolean initMap()
public void setPrintSizeMultiplier(double factor)
factor - The multiplier, e.g. 1.5 makes a map 1.5 times the size.public int getPrintHeight()
public int getPrintWidth()
public int getPrintDpi()
public boolean refresh()
public java.lang.String getAlertMessage()
public void clearAlertMessage()
public void setExtent(AimsEnvelope env)
env - An Envelope containing the new extent.public void setExtentNoClip(AimsEnvelope env)
env - An Envelope containing the new extent.public AimsEnvelope getExtent()
public int getWidth()
public AimsWorkspaces getWorkspaces()
public void setWidth(int width)
width - The width of the map in pixels.public int getHeight()
public void setHeight(int height)
height - The height of the map in pixels.public void setFullExtent(AimsEnvelope env)
env - The map extent envelopepublic void setInitialExtent(AimsEnvelope env)
env - The map extent envelopepublic AimsEnvelope getFullExtent()
public java.lang.String getMapUnits()
public void setMapUnits(java.lang.String mapunits)
mapunits - A String containing the type of mapunits.public void setMaximumExtent(AimsEnvelope env)
env - The map extent envelopepublic AimsEnvelope getMaximumExtent()
public AimsLayers getLayers()
public boolean isLayerWithinThreshold(java.lang.String layerNameAliasOrId)
layerNameAliasOrId - name, alias or ID of the layer
public boolean isLayerWithinThreshold(AimsLayer layer)
public boolean isLayerVisible(java.lang.String layerNameAliasOrId)
layerNameAliasOrId - name or ID of the layer
public void zoomToBC()
public void zoomToFullExtent()
public void zoomToExtent(double x1,
double y1,
double x2,
double y2)
x1 - The minimum X coordinate (mapunits)y1 - The minimum Y coordinate (mapunits)x2 - The maximum X coordinate (mapunits)y2 - The maximum Y coordinate (mapunits)public void zoomToPreviousExtent()
public void zoomToMapsheet(java.lang.String mapsheet)
mapsheet - The mapsheet to zoom topublic double getScale(double scaleFactor)
scaleFactor - The scale factor to calculate map scale for.
public double getScaleFactor(double scale)
public double getScale()
public double getScaleFactor()
public void setScale(double scale)
scale - The scale. For example 20000 indicates that the scale
should be set to 1:20000.
public void doZoom(double mapX,
double mapY,
double zoomFactor)
mapX - The map centre x coordinate.zoomFactor - A number that determines the relative scale for the map.
public void centerAt(double mapX,
double mapY)
mapX - centre point x coordinate, in mapunitsmapY - centre point y coordinate, in mapunits
public void setAxlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value,
java.lang.String server)
tag - The AXL element tag containing this attribute.name - The AXL attribute name.value - The AXL attribute value.public java.lang.String toString()
public void setMaximumScale(double scale)
public void setMinimumScale(double scale)
public java.awt.geom.AffineTransform getMapTransform()
public java.awt.geom.AffineTransform getPageTransform()
public java.lang.String getImageUrl()
public java.awt.image.BufferedImage getImage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||