Java Doc for PaletteExtractor.java in  » GIS » GeoServer » org » vfny » geoserver » wms » responses » 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 » GeoServer » org.vfny.geoserver.wms.responses 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.vfny.geoserver.wms.responses.PaletteExtractor

PaletteExtractor
public class PaletteExtractor extends FilterAttributeExtractor implements StyleVisitor(Code)
A style visitor whose purpose is to extract a minimal palette for the provided style. This is to be used when no antialiasing is used, since that would introduce various colors not included in the style.
At the moment the palette is extracted only if external graphics aren't referenced (a future version may learn to extract a palette merging the ones of the external graphics).


Field Summary
final public static  ColorTRANSPARENT
    
 Setcolors
    
 booleanexternalGraphicsSymbolizers
    
 booleanrasterUsed
    
 booleantranslucentSymbolizers
    
 booleanunknownColors
    

Constructor Summary
public  PaletteExtractor(Color background)
    

Method Summary
public  booleancanComputePalette()
    
public  IndexColorModelgetPalette()
    
 voidhandleColor(Expression color)
    
 voidhandleOpacity(Expression opacity)
     Checks whether translucency is used in the provided expression.
public  voidvisit(Style style)
    
public  voidvisit(Rule rule)
    
public  voidvisit(FeatureTypeStyle fts)
    
public  voidvisit(StyledLayerDescriptor sld)
    
public  voidvisit(NamedLayer layer)
    
public  voidvisit(UserLayer layer)
    
public  voidvisit(FeatureTypeConstraint ftc)
    
public  voidvisit(Symbolizer sym)
    
public  voidvisit(Fill fill)
    
public  voidvisit(Stroke stroke)
    
public  voidvisit(RasterSymbolizer rs)
    
public  voidvisit(PointSymbolizer ps)
    
public  voidvisit(LineSymbolizer line)
    
public  voidvisit(PolygonSymbolizer poly)
    
public  voidvisit(TextSymbolizer text)
    
public  voidvisit(Graphic gr)
    
public  voidvisit(Mark mark)
    
public  voidvisit(ExternalGraphic exgr)
    
public  voidvisit(PointPlacement pp)
    
public  voidvisit(AnchorPoint ap)
    
public  voidvisit(Displacement dis)
    
public  voidvisit(LinePlacement lp)
    
public  voidvisit(Halo halo)
    
public  voidvisit(ColorMap map)
    
public  voidvisit(ColorMapEntry entry)
    

Field Detail
TRANSPARENT
final public static Color TRANSPARENT(Code)



colors
Set colors(Code)



externalGraphicsSymbolizers
boolean externalGraphicsSymbolizers(Code)



rasterUsed
boolean rasterUsed(Code)



translucentSymbolizers
boolean translucentSymbolizers(Code)



unknownColors
boolean unknownColors(Code)




Constructor Detail
PaletteExtractor
public PaletteExtractor(Color background)(Code)
Initializes a new palette extractor
Parameters:
  background - background color, or null if transparent




Method Detail
canComputePalette
public boolean canComputePalette()(Code)



getPalette
public IndexColorModel getPalette()(Code)
Returns the palette, or null if it wasn't possible to devise one



handleColor
void handleColor(Expression color)(Code)
Adds a color to the color set, and raises the unknown color flag if the color is an expression other than a literal
Parameters:
  color -



handleOpacity
void handleOpacity(Expression opacity)(Code)
Checks whether translucency is used in the provided expression. Raises the flag of used translucency unless it's possible to determine it's not.
Parameters:
  opacity -



visit
public void visit(Style style)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Style)



visit
public void visit(Rule rule)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Rule)



visit
public void visit(FeatureTypeStyle fts)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.FeatureTypeStyle)



visit
public void visit(StyledLayerDescriptor sld)(Code)



visit
public void visit(NamedLayer layer)(Code)



visit
public void visit(UserLayer layer)(Code)



visit
public void visit(FeatureTypeConstraint ftc)(Code)



visit
public void visit(Symbolizer sym)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Symbolizer)



visit
public void visit(Fill fill)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Fill)



visit
public void visit(Stroke stroke)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Stroke)



visit
public void visit(RasterSymbolizer rs)(Code)



visit
public void visit(PointSymbolizer ps)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.PointSymbolizer)



visit
public void visit(LineSymbolizer line)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.LineSymbolizer)



visit
public void visit(PolygonSymbolizer poly)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.PolygonSymbolizer)



visit
public void visit(TextSymbolizer text)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.TextSymbolizer)



visit
public void visit(Graphic gr)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Graphic)



visit
public void visit(Mark mark)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Mark)



visit
public void visit(ExternalGraphic exgr)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.ExternalGraphic)



visit
public void visit(PointPlacement pp)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.PointPlacement)



visit
public void visit(AnchorPoint ap)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.AnchorPoint)



visit
public void visit(Displacement dis)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Displacement)



visit
public void visit(LinePlacement lp)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.LinePlacement)



visit
public void visit(Halo halo)(Code)

See Also:   org.geotools.styling.StyleVisitor.visit(org.geotools.styling.Halo)



visit
public void visit(ColorMap map)(Code)



visit
public void visit(ColorMapEntry entry)(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.