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


java.lang.Object
   org.geotools.renderer.shape.ShapefileRenderer

ShapefileRenderer
public class ShapefileRenderer implements GTRenderer(Code)
A LiteRenderer Implementations that is optimized for shapefiles.
author:
   jeichar
since:
   2.1.x


Field Summary
final public static  StringDECLARED_SCALE_DENOM_KEY
    
final public static  DefaultRenderListenerDEFAULT_LISTENER
     This listener is added to the list of listeners automatically.
final public static  StringDPI_KEY
    
final public static  StringFORCE_CRS_KEY
    
final public static  StringLABEL_CACHE_KEY
    
final public static  LoggerLOGGER
    
final public static  StringMEMORY_PRE_LOADING_KEY
    
static  intNUM_SAMPLES
    
final public static  StringOPTIMIZED_DATA_LOADING_KEY
    
final public static  StringSCALE_ACCURATE
     Computes the scale as the ratio between map distances and real world distances, assuming 90dpi and taking into consideration projection deformations and actual earth shape.
final public static  StringSCALE_COMPUTATION_METHOD_KEY
    
final public static  StringSCALE_OGC
     Very simple and lenient scale computation method that conforms to the OGC SLD specification 1.0, page 26.
final public static  StringTEXT_RENDERING_KEY
    
final public static  StringTEXT_RENDERING_OUTLINE
     Text will be rendered using the associated GlyphVector outline, that is, a Shape .
final public static  StringTEXT_RENDERING_STRING
     Text will be rendered using the usual calls gc.drawString/drawGlyphVector. This is a little faster, and more consistent with how the platform renders the text in other applications.
 int[]attributeIndexing
    
 booleancaching
    
 DbaseFileHeaderdbfheader
    
 LabelCachelabelCache
    
 IndexInfo[]layerIndexInfo
    

Constructor Summary
public  ShapefileRenderer(MapContext context)
    
public  ShapefileRenderer()
    

Method Summary
public  voidaddRenderListener(RenderListener listener)
     adds a listener that responds to error events of feature rendered events.
 FeaturecreateFeature(FeatureType type, Record record, DbaseFileReader dbfreader, String id)
    
 FeatureTypecreateFeatureType(Query query, Style style, ShapefileDataStore ds)
    
public  MapContextgetContext()
    
public  RenderingHintsgetJava2DHints()
    
public  MapgetRendererHints()
    
public  booleanisCaching()
    
public  booleanisConcatTransforms()
    
public  voidpaint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea)
    
public  voidpaint(Graphics2D graphics, Rectangle paintArea, AffineTransform worldToScreen)
    
public  voidpaint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope envelope, AffineTransform transform)
    
public  voidpaint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea)
    
public  voidpaint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea, AffineTransform worldToScreen)
    
public  voidremoveRenderListener(RenderListener listener)
     Removes a render listener.
public  voidsetCaching(boolean caching)
    
public  voidsetConcatTransforms(boolean concatTransforms)
    
public  voidsetContext(MapContext context)
    
public  voidsetJava2DHints(RenderingHints hints)
    
public  voidsetRendererHints(Map hints)
    
protected  voidsetScaleDenominator(double scaleDenominator)
     Setter for property scaleDenominator.
public  voidstopRendering()
    
public  IndexInfouseIndex(ShapefileDataStore ds)
    

Field Detail
DECLARED_SCALE_DENOM_KEY
final public static String DECLARED_SCALE_DENOM_KEY(Code)



DEFAULT_LISTENER
final public static DefaultRenderListener DEFAULT_LISTENER(Code)
This listener is added to the list of listeners automatically. It should be removed if the default logging is not needed.



DPI_KEY
final public static String DPI_KEY(Code)



FORCE_CRS_KEY
final public static String FORCE_CRS_KEY(Code)



LABEL_CACHE_KEY
final public static String LABEL_CACHE_KEY(Code)



LOGGER
final public static Logger LOGGER(Code)



MEMORY_PRE_LOADING_KEY
final public static String MEMORY_PRE_LOADING_KEY(Code)



NUM_SAMPLES
static int NUM_SAMPLES(Code)



OPTIMIZED_DATA_LOADING_KEY
final public static String OPTIMIZED_DATA_LOADING_KEY(Code)



SCALE_ACCURATE
final public static String SCALE_ACCURATE(Code)
Computes the scale as the ratio between map distances and real world distances, assuming 90dpi and taking into consideration projection deformations and actual earth shape.
Use this method only when in need of accurate computation. Will break if the data extent is outside of the currenct projection definition area.



SCALE_COMPUTATION_METHOD_KEY
final public static String SCALE_COMPUTATION_METHOD_KEY(Code)



SCALE_OGC
final public static String SCALE_OGC(Code)
Very simple and lenient scale computation method that conforms to the OGC SLD specification 1.0, page 26.
This method is quite approximative, but should never break and ensure constant scale even on lat/lon unprojected maps (because in that case scale is computed as if the area was along the equator no matter what the real position is).



TEXT_RENDERING_KEY
final public static String TEXT_RENDERING_KEY(Code)
The text rendering method, either TEXT_RENDERING_OUTLINE or TEXT_RENDERING_STRING



TEXT_RENDERING_OUTLINE
final public static String TEXT_RENDERING_OUTLINE(Code)
Text will be rendered using the associated GlyphVector outline, that is, a Shape . This ensures perfect centering between the text and the halo, but introduces more text aliasing.



TEXT_RENDERING_STRING
final public static String TEXT_RENDERING_STRING(Code)
Text will be rendered using the usual calls gc.drawString/drawGlyphVector. This is a little faster, and more consistent with how the platform renders the text in other applications. The downside is that on most platform the label and its eventual halo are not properly centered.



attributeIndexing
int[] attributeIndexing(Code)
Maps between the AttributeType index of the new generated FeatureType and the real attributeType



caching
boolean caching(Code)



dbfheader
DbaseFileHeader dbfheader(Code)



labelCache
LabelCache labelCache(Code)



layerIndexInfo
IndexInfo[] layerIndexInfo(Code)




Constructor Detail
ShapefileRenderer
public ShapefileRenderer(MapContext context)(Code)



ShapefileRenderer
public ShapefileRenderer()(Code)




Method Detail
addRenderListener
public void addRenderListener(RenderListener listener)(Code)
adds a listener that responds to error events of feature rendered events.
Parameters:
  listener - the listener to add.
See Also:   RenderListener



createFeature
Feature createFeature(FeatureType type, Record record, DbaseFileReader dbfreader, String id) throws Exception(Code)



createFeatureType
FeatureType createFeatureType(Query query, Style style, ShapefileDataStore ds) throws SchemaException, IOException(Code)
DOCUMENT ME!
Parameters:
  query -
Parameters:
  style -
Parameters:
  schema - DOCUMENT ME!
throws:
  FactoryConfigurationError -
throws:
  SchemaException -



getContext
public MapContext getContext()(Code)



getJava2DHints
public RenderingHints getJava2DHints()(Code)



getRendererHints
public Map getRendererHints()(Code)



isCaching
public boolean isCaching()(Code)
DOCUMENT ME! Returns the caching.



isConcatTransforms
public boolean isConcatTransforms()(Code)



paint
public void paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea)(Code)



paint
public void paint(Graphics2D graphics, Rectangle paintArea, AffineTransform worldToScreen)(Code)



paint
public void paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope envelope, AffineTransform transform)(Code)



paint
public void paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea)(Code)



paint
public void paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea, AffineTransform worldToScreen)(Code)



removeRenderListener
public void removeRenderListener(RenderListener listener)(Code)
Removes a render listener.
Parameters:
  listener - the listener to remove.
See Also:   RenderListener



setCaching
public void setCaching(boolean caching)(Code)
DOCUMENT ME!
Parameters:
  caching - The caching to set.



setConcatTransforms
public void setConcatTransforms(boolean concatTransforms)(Code)



setContext
public void setContext(MapContext context)(Code)



setJava2DHints
public void setJava2DHints(RenderingHints hints)(Code)



setRendererHints
public void setRendererHints(Map hints)(Code)



setScaleDenominator
protected void setScaleDenominator(double scaleDenominator)(Code)
Setter for property scaleDenominator.
Parameters:
  scaleDenominator - New value of property scaleDenominator.



stopRendering
public void stopRendering()(Code)
If you call this method from another thread than the one that called paint or render the rendering will be forcefully stopped before termination



useIndex
public IndexInfo useIndex(ShapefileDataStore ds) throws IOException, StoreException(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.