Java Doc for GTRenderer.java in  » GIS » GeoTools-2.4.1 » org » geotools » renderer » 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 » GeoTools 2.4.1 » org.geotools.renderer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.renderer.GTRenderer

All known Subclasses:   org.geotools.renderer.lite.StreamingRenderer,  org.geotools.renderer.shape.ShapefileRenderer,
GTRenderer
public interface GTRenderer (Code)
Typical usage:
 Rectangle paintArea = new Rectangle(width, height);
 Envelope mapArea = map.getAreaOfInterest();
 renderer = new StreamingRenderer();
 renderer.setContext(map);
 RenderingHints hints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
 renderer.setJava2DHints(hints);
 Map rendererParams = new HashMap();
 rendererParams.put("optimizedDataLoadingEnabled",new Boolean(true) );
 renderer.paint(graphic, paintArea, mapArea);
 

author:
   David Blasby
author:
   Simone Giannecchini




Method Summary
public  voidaddRenderListener(RenderListener listener)
    
public  MapContextgetContext()
    
public  RenderingHintsgetJava2DHints()
    
public  MapgetRendererHints()
    
public  voidpaint(Graphics2D graphics, Rectangle paintArea, AffineTransform worldToScreen)
     Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that the size of the output area and the transformation from coordinates to pixels are known. The latter determines the map scale.

public  voidpaint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea)
     Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that the area of the visible part of the map and the size of the output area are known.

public  voidpaint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea)
     Renders features based on the map layers and their styles as specified in the map context using setContext.
public  voidpaint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea, AffineTransform worldToScreen)
     Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that paint area, enelope and worldToScreen transform are already computed and in sync.

public  voidpaint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea, AffineTransform worldToScreen)
     Renders features based on the map layers and their styles as specified in the map context using setContext.
public  voidremoveRenderListener(RenderListener listener)
    
public  voidsetContext(MapContext context)
    
public  voidsetJava2DHints(RenderingHints hints)
    
public  voidsetRendererHints(Map hints)
    
public  voidstopRendering()
    



Method Detail
addRenderListener
public void addRenderListener(RenderListener listener)(Code)



getContext
public MapContext getContext()(Code)



getJava2DHints
public RenderingHints getJava2DHints()(Code)



getRendererHints
public Map getRendererHints()(Code)



paint
public void paint(Graphics2D graphics, Rectangle paintArea, AffineTransform worldToScreen)(Code)
Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that the size of the output area and the transformation from coordinates to pixels are known. The latter determines the map scale. The viewport (the visible part of the map) will be calculated internally.
Parameters:
  graphics - The graphics object to draw to.
Parameters:
  paintArea - The size of the output area in output units (eg: pixels).
Parameters:
  worldToScreen - A transform which converts World coordinates to Screen coordinates.




paint
public void paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea)(Code)
Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that the area of the visible part of the map and the size of the output area are known. The transform between the two is calculated internally.
Parameters:
  graphics - The graphics object to draw to.
Parameters:
  paintArea - The size of the output area in output units (eg: pixels).
Parameters:
  mapArea - the map's visible area (viewport) in map coordinates.




paint
public void paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea)(Code)
Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that the area of the visible part of the map and the size of the output area are known. The transform between the two is calculated internally.
Parameters:
  graphics - The graphics object to draw to.
Parameters:
  paintArea - The size of the output area in output units (eg: pixels).
Parameters:
  mapArea - the map's visible area (viewport) in map coordinates.




paint
public void paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea, AffineTransform worldToScreen)(Code)
Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that paint area, enelope and worldToScreen transform are already computed and in sync. Use this method to avoid recomputation. Note however that no check is performed that they are really synchronized!
Parameters:
  graphics - The graphics object to draw to.
Parameters:
  paintArea - The size of the output area in output units (eg: pixels).
Parameters:
  mapArea - the map's visible area (viewport) in map coordinates.
Parameters:
  worldToScreen - A transform which converts World coordinates to Screen coordinates.




paint
public void paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea, AffineTransform worldToScreen)(Code)
Renders features based on the map layers and their styles as specified in the map context using setContext.

This version of the method assumes that paint area, enelope and worldToScreen transform are already computed and in sync. Use this method to avoid recomputation. Note however that no check is performed that they are really synchronized!
Parameters:
  graphics - The graphics object to draw to.
Parameters:
  paintArea - The size of the output area in output units (eg: pixels).
Parameters:
  mapArea - the map's visible area (viewport) in map coordinates.
Parameters:
  worldToScreen - A transform which converts World coordinates to Screencoordinates.




removeRenderListener
public void removeRenderListener(RenderListener listener)(Code)



setContext
public void setContext(MapContext context)(Code)



setJava2DHints
public void setJava2DHints(RenderingHints hints)(Code)



setRendererHints
public void setRendererHints(Map hints)(Code)



stopRendering
public void stopRendering()(Code)



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