|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.vividsolutions.wms.MapRequest
Represents all of the parameters of a getMap request from a WMS server.
| Constructor Summary | |
MapRequest(WMService service)
Creates a new MapRequest. |
|
| Method Summary | |
BoundingBox |
getBoundingBox()
Gets the BoundingBox of the image being requested. |
java.lang.String |
getFormat()
Returns the format of this request. |
java.awt.Image |
getImage()
Connect to the service and get an Image of the map. |
int |
getImageHeight()
Gets the height of the requested image, in pixels. |
int |
getImageWidth()
Gets the width of the requested image, in pixels. |
java.util.List |
getLayers()
Returns the list of layers to be requested. |
WMService |
getService()
Gets the WMService that this object will make requests from. |
boolean |
getTransparent()
Gets whether or not a transparent image is being requested. |
java.net.URL |
getURL()
|
void |
setBoundingBox(BoundingBox bbox)
Sets the BoundingBox of the image being requested. |
void |
setFormat(java.lang.String format)
Sets the format of this request. |
void |
setImageHeight(int imageHeight)
Sets the height of the image being requested. |
void |
setImageSize(int imageWidth,
int imageHeight)
Sets the width and height of the image being requested. |
void |
setImageWidth(int imageWidth)
Sets the width of the image being requested. |
void |
setLayers(java.util.List layerList)
Sets the layers to be requested. |
void |
setTransparent(boolean transparent)
Sets whether or not to request an image with a transparent background. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MapRequest(WMService service)
service - the WMService which this MapRequest will use| Method Detail |
public WMService getService()
public java.lang.String getFormat()
public int getImageWidth()
public int getImageHeight()
public java.util.List getLayers()
public BoundingBox getBoundingBox()
public boolean getTransparent()
public void setFormat(java.lang.String format)
throws java.lang.IllegalArgumentException
format - a format string which is in the list of supported formats
java.lang.IllegalArgumentException - if the specified format isn't in the list of supported formatsMapImageFormatChooserpublic void setImageWidth(int imageWidth)
imageWidth - the width of the image being requestedpublic void setImageHeight(int imageHeight)
imageHeight - the height of the image being requested
public void setImageSize(int imageWidth,
int imageHeight)
imageWidth - the width of the image being requestedimageHeight - the height of the image being requestedpublic void setLayers(java.util.List layerList)
layerList - an ordered List of the names of layers to be displayedpublic void setBoundingBox(BoundingBox bbox)
bbox - the BoundingBox of the image being requestedpublic void setTransparent(boolean transparent)
transparent - true to request a transparent background, false otherwise.
public java.net.URL getURL()
throws java.net.MalformedURLException
java.net.MalformedURLException - if there is a problem building the URL for some reason
public java.awt.Image getImage()
throws java.net.MalformedURLException
java.net.MalformedURLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||