Java Doc for MapRequest.java in  » GIS » openjump » com » vividsolutions » wms » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » openjump » com.vividsolutions.wms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.vividsolutions.wms.MapRequest

MapRequest
public class MapRequest (Code)
Represents all of the parameters of a getMap request from a WMS server.
author:
   Chris Hodgson chodgson@refractions.net



Constructor Summary
public  MapRequest(WMService service)
     Creates a new MapRequest.

Method Summary
public  BoundingBoxgetBoundingBox()
     Gets the BoundingBox of the image being requested.
public  StringgetFormat()
     Returns the format of this request. This may be a string such as GIF, JPEG, or PNG for a WMS 1.0 server, or a mime-type string in the case of a WMS 1.1 server.
public  ImagegetImage()
     Connect to the service and get an Image of the map.
public  intgetImageHeight()
     Gets the height of the requested image, in pixels.
public  intgetImageWidth()
     Gets the width of the requested image, in pixels.
public  ListgetLayers()
     Returns the list of layers to be requested.
public  WMServicegetService()
     Gets the WMService that this object will make requests from.
public  booleangetTransparent()
     Gets whether or not a transparent image is being requested.
public  URLgetURL()
    
public static  StringlistToString(List list)
     Returns a String containing the string representations of each item in the list (as provided by toString()), separated by commas.
public  voidsetBoundingBox(BoundingBox bbox)
     Sets the BoundingBox of the image being requested.
public  voidsetFormat(String format)
     Sets the format of this request.
public  voidsetImageHeight(int imageHeight)
     Sets the height of the image being requested.
public  voidsetImageSize(int imageWidth, int imageHeight)
     Sets the width and height of the image being requested.
public  voidsetImageWidth(int imageWidth)
     Sets the width of the image being requested.
public  voidsetLayers(List layerList)
     Sets the layers to be requested.
public  voidsetTransparent(boolean transparent)
     Sets whether or not to request an image with a transparent background. Requesting a transparent background doesn't guarantee that the resulting image will actually have a transparent background.
public  voidsetVersion(String ver)
    


Constructor Detail
MapRequest
public MapRequest(WMService service)(Code)
Creates a new MapRequest.
Parameters:
  service - the WMService which this MapRequest will use




Method Detail
getBoundingBox
public BoundingBox getBoundingBox()(Code)
Gets the BoundingBox of the image being requested. the BoundingBox of the image being requested



getFormat
public String getFormat()(Code)
Returns the format of this request. This may be a string such as GIF, JPEG, or PNG for a WMS 1.0 server, or a mime-type string in the case of a WMS 1.1 server. It may also be null if the format has not yet been set. the string representing the format of this request



getImage
public Image getImage() throws MalformedURLException(Code)
Connect to the service and get an Image of the map. the retrieved map Image



getImageHeight
public int getImageHeight()(Code)
Gets the height of the requested image, in pixels. The default image height is 100. the height of the requested image



getImageWidth
public int getImageWidth()(Code)
Gets the width of the requested image, in pixels. The default image width is 100. the width of the requested image



getLayers
public List getLayers()(Code)
Returns the list of layers to be requested. Each item in the list should be a String which is the name of a layer. the list of layer names to be requested



getService
public WMService getService()(Code)
Gets the WMService that this object will make requests from. the WMService that this object will make requests from



getTransparent
public boolean getTransparent()(Code)
Gets whether or not a transparent image is being requested. true if a transparent image is being requested, false otherwise



getURL
public URL getURL() throws MalformedURLException(Code)
the URL for this request
throws:
  MalformedURLException - if there is a problem building the URL for some reason



listToString
public static String listToString(List list)(Code)
Returns a String containing the string representations of each item in the list (as provided by toString()), separated by commas.
Parameters:
  list - the list to be returned as a coma-separated String a comma-separted String of the items in the list



setBoundingBox
public void setBoundingBox(BoundingBox bbox)(Code)
Sets the BoundingBox of the image being requested.
Parameters:
  bbox - the BoundingBox of the image being requested



setFormat
public void setFormat(String format) throws IllegalArgumentException(Code)
Sets the format of this request. The format must be a string which is in the list of supported formats as provided by getSupportedFormatList() (not necessarily the same String object, but the same sequence of characters). This will be an unformatted string for a WMS 1.0 server (GIF, JPEG, PNG) or a mime-type string for a WMS 1.1 server (image/gif, image/jpeg, image/png). If the format specified is not in the list, an IllegalArgumentException will be thrown.
Parameters:
  format - a format string which is in the list of supported formats
throws:
  IllegalArgumentException - if the specified format isn't in the list of supported formats
See Also:   MapImageFormatChooser



setImageHeight
public void setImageHeight(int imageHeight)(Code)
Sets the height of the image being requested.
Parameters:
  imageHeight - the height of the image being requested



setImageSize
public void setImageSize(int imageWidth, int imageHeight)(Code)
Sets the width and height of the image being requested.
Parameters:
  imageWidth - the width of the image being requested
Parameters:
  imageHeight - the height of the image being requested



setImageWidth
public void setImageWidth(int imageWidth)(Code)
Sets the width of the image being requested.
Parameters:
  imageWidth - the width of the image being requested



setLayers
public void setLayers(List layerList)(Code)
Sets the layers to be requested. Each item in the list should be a string which corresponds to the name of a layer. The order of the list is important as the layers are rendered in the same order they are listed.
Parameters:
  layerList - an ordered List of the names of layers to be displayed



setTransparent
public void setTransparent(boolean transparent)(Code)
Sets whether or not to request an image with a transparent background. Requesting a transparent background doesn't guarantee that the resulting image will actually have a transparent background. Not all servers support transparency, and not all formats support transparency.
Parameters:
  transparent - true to request a transparent background, false otherwise.



setVersion
public void setVersion(String ver)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.