|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ebgeo.maprequest.MapService ebgeo.maprequest.ArcIMSMapService
A MapService that talks to ArcIMS based web sites.
Nested Class Summary | |
class |
ArcIMSMapService.MapDownloaderThread
|
Field Summary | |
protected int |
addTextHeight
|
protected String |
baseURL
|
protected HttpClient |
client
|
protected String |
datum
|
protected boolean |
generateSegmentsRandomly
|
protected String |
imageFormat
|
protected String |
infoURL
|
protected double |
initialMaxX
|
protected double |
initialMaxY
|
protected double |
initialMinX
|
protected double |
initialMinY
|
protected Vector |
layers
|
protected int |
mapDelay
|
protected String |
mapDescription
|
protected int |
maxHeight
|
protected int |
maxWidth
|
protected double |
maxXExtent
|
protected double |
maxYExtent
|
protected int |
minHeight
|
protected int |
minWidth
|
protected double |
minXExtent
|
protected double |
minYExtent
|
protected double |
oziAdjustEasting
|
protected double |
oziAdjustNorthing
|
protected String |
projection
|
protected String |
refererURL
|
protected String |
requestURL
|
Fields inherited from class ebgeo.maprequest.MapService |
addText, cs, locale, supportsPanning, supportsZooming |
Constructor Summary | |
ArcIMSMapService(Properties props)
Creates a new instance of MapRequest |
Method Summary | |
protected HttpMethodBase |
buildRequest(String xml)
|
void |
buildUpMap(BufferedImage image,
String tempDirectory,
Component parentComponent,
BoundedRangeModel progress,
MainWindow main)
Build up a map by requesting an appropriate number of smaller maps appropriate for this service. |
boolean |
configure()
Instruct the service that it should configure itself for its map. |
protected boolean |
configureCookies()
|
protected Vector |
createSegments(MapImageParameters params,
Graphics2D graphics)
|
protected boolean |
deleteSegments(String outputDirectory,
Vector segments)
|
protected boolean |
downloadImage(String url,
String outputDirectory,
String filename)
|
protected boolean |
extractCapabilities()
|
String |
extractXML(String response)
Extract the XML reply component from the ArcWeb response. |
String |
getCountry()
Get the country that this map is from. |
protected Vector |
getDefaultLayers()
|
String |
getDriverDescription()
Get the description of this driver. |
protected String |
getImageFormat()
|
int |
getImageHeight()
Get the height of the map image. |
int |
getImageWidth()
Get the width of the map image. |
double |
getInitialMaxX()
Get the suggested initial maximum X value for this map. |
double |
getInitialMaxY()
Get the suggested initial maximum Y value for this map. |
double |
getInitialMinX()
Get the suggested initial minimum X value for this map. |
double |
getInitialMinY()
Get the suggested initial minimum Y value for this map. |
Vector |
getLayers()
Get the list of layers to display. |
protected int |
getMapDelay()
Get the number of seconds to sleep between map image requests. |
String |
getMapDescription()
Get the description of the map. |
MapImageParameters |
getMapImageParameters()
Get the area of map and size to draw. |
String |
getMapInfoURL()
Get a URL giving information about the map and/or web site. |
protected int |
getMaxHeight()
Get the maximum height that can be requested from this service. |
protected int |
getMaxWidth()
Get the maximum width that can be requested from this service. |
double |
getMaxXExtent()
Get the maximum valid X value for this map. |
double |
getMaxYExtent()
Get the maximum valid Y value for this map. |
double |
getMinXExtent()
Get the minimum valid X value for this map. |
double |
getMinYExtent()
Get the minimum valid Y value for this map. |
String |
getState()
Get the state or province that this map is from. |
boolean |
isConfigured()
Check if this service has been configured for the map. |
protected boolean |
isGenerateSegmentsRandomly()
Check if map segments (where a map needs multiple segments) should be generated in a ramdom order. |
protected boolean |
renderAddText(Graphics2D graphics)
|
protected boolean |
renderSegment(MapSegment segment,
Graphics2D graphics,
String tempDirectory)
|
protected boolean |
requestMap(double minx,
double miny,
double maxx,
double maxy,
int width,
int height,
String outputDirectory,
String filename)
|
protected String |
sendRequest(HttpMethodBase request)
|
void |
setLayers(Vector layers)
Set the list of layers to display. |
void |
setMapImageParameters(MapImageParameters imageParams)
Set the area of map and size to draw. |
void |
stopBuildUpMap()
If this object is currently building up a map (because buildUpMap(BufferedImage,String,Component,BoundedRangeModel,MainWindow)
was called) then calling this method instructs the map service to stop
building up a map. |
MapImageParameters |
validateMapImageParameters(MapImageParameters params)
Check that the map image parameters are valid for this map. |
Methods inherited from class ebgeo.maprequest.MapService |
compareTo, extractDegrees, extractMinutes, getAddText, getCs, getLocale, isSupportsPanning, isSupportsZooming, setAddText, setCs, setCs, setLocale, setSupportsPanning, setSupportsZooming, writeImage, writeMapFile, writeMapFile, writeOziMapFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String mapDescription
protected String projection
protected String datum
protected double oziAdjustNorthing
protected double oziAdjustEasting
protected String baseURL
protected String infoURL
protected String requestURL
protected String refererURL
protected int mapDelay
protected String imageFormat
protected boolean generateSegmentsRandomly
protected double minXExtent
protected double minYExtent
protected double maxXExtent
protected double maxYExtent
protected double initialMinX
protected double initialMaxX
protected double initialMinY
protected double initialMaxY
protected Vector layers
protected int addTextHeight
protected int maxWidth
protected int maxHeight
protected int minWidth
protected int minHeight
protected HttpClient client
Constructor Detail |
public ArcIMSMapService(Properties props)
Method Detail |
public String getDriverDescription()
MapService
getDriverDescription
in class MapService
public Vector getLayers()
MapService
getLayers
in class MapService
public String extractXML(String response)
response
- The response from the web server.
protected HttpMethodBase buildRequest(String xml)
protected boolean extractCapabilities()
protected int getMaxWidth()
protected int getMaxHeight()
protected int getMapDelay()
protected String getImageFormat()
protected boolean isGenerateSegmentsRandomly()
protected String sendRequest(HttpMethodBase request)
protected Vector getDefaultLayers()
protected boolean requestMap(double minx, double miny, double maxx, double maxy, int width, int height, String outputDirectory, String filename)
protected boolean downloadImage(String url, String outputDirectory, String filename)
protected boolean configureCookies()
protected Vector createSegments(MapImageParameters params, Graphics2D graphics)
protected boolean deleteSegments(String outputDirectory, Vector segments)
protected boolean renderAddText(Graphics2D graphics)
protected boolean renderSegment(MapSegment segment, Graphics2D graphics, String tempDirectory)
public void buildUpMap(BufferedImage image, String tempDirectory, Component parentComponent, BoundedRangeModel progress, MainWindow main)
buildUpMap
in class MapService
image
- The image to draw the map on.tempDirectory
- A temporary directory that can be used
to write temporary files to.parentComponent
- A component to send repaint() requests to as
each map segment is made available.progress
- A progress bar to update.main
- The main window. When the map has been requested, MainWindow.mapDone()
is called.public void stopBuildUpMap()
MapService
MapService.buildUpMap(BufferedImage,String,Component,BoundedRangeModel,MainWindow)
was called) then calling this method instructs the map service to stop
building up a map.
stopBuildUpMap
in class MapService
public String getMapDescription()
MapService
getMapDescription
in class MapService
public boolean configure()
MapService
configure
in class MapService
public boolean isConfigured()
MapService
isConfigured
in class MapService
public void setLayers(Vector layers)
MapService
setLayers
in class MapService
public double getInitialMinY()
MapService
getInitialMinY
in class MapService
public double getInitialMaxY()
MapService
getInitialMaxY
in class MapService
public double getInitialMinX()
MapService
getInitialMinX
in class MapService
public double getInitialMaxX()
MapService
getInitialMaxX
in class MapService
public double getMaxXExtent()
MapService
getMaxXExtent
in class MapService
public double getMaxYExtent()
MapService
getMaxYExtent
in class MapService
public double getMinXExtent()
MapService
getMinXExtent
in class MapService
public double getMinYExtent()
MapService
getMinYExtent
in class MapService
public MapImageParameters validateMapImageParameters(MapImageParameters params)
MapService
validateMapImageParameters
in class MapService
params
- The requested map image parameters.
public String getCountry()
MapService
getCountry
in class MapService
public String getState()
MapService
getState
in class MapService
public int getImageHeight()
MapService
getImageHeight
in class MapService
public int getImageWidth()
MapService
getImageWidth
in class MapService
public void setMapImageParameters(MapImageParameters imageParams)
MapService
setMapImageParameters
in class MapService
public MapImageParameters getMapImageParameters()
MapService
getMapImageParameters
in class MapService
public String getMapInfoURL()
MapService
getMapInfoURL
in class MapService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |