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


org.geotools.styling.Fill

All known Subclasses:   org.geotools.styling.FillImpl,
Fill
public interface Fill extends GTComponent(Code)
The Fill object encapsulates the graphical-symbolization parameters for areas of geometries.

There are two types of fill: solid-color and repeated graphic fill.

The details of this object are taken from the OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:


 <xsd:element name="Fill">
 <xsd:annotation>
 <xsd:documentation>
 A "Fill" specifies the pattern for filling an area geometry.
 The allowed CssParameters are: "fill" (color) and "fill-opacity".
 </xsd:documentation>
 </xsd:annotation>
 <xsd:complexType>
 <xsd:sequence>
 <xsd:element ref="sld:GraphicFill" minOccurs="0"/>
 <xsd:element ref="sld:CssParameter" minOccurs="0"
 maxOccurs="unbounded"/>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 

Renderers can use this information when displaying styled features, though it must be remembered that not all renderers will be able to fully represent strokes as set out by this interface. For example, opacity may not be supported.

Notes:

  • The graphical parameters and their values are derived from SVG/CSS2 standards with names and semantics which are as close as possible.


author:
   James Macgill, CCG
version:
   $Id: Fill.java 25459 2007-05-08 05:19:25Z jgarnett $


Field Summary
final static  FillDEFAULT
    
final static  FillNULL
    


Method Summary
 voidaccept(StyleVisitor visitor)
    
 ExpressiongetBackgroundColor()
     This parameter gives the solid color that will be used as a background for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign.
 ExpressiongetColor()
     This parameter gives the solid color that will be used for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign.
 GraphicgetGraphicFill()
     This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use. The graphic to use as a stipple fill.
 ExpressiongetOpacity()
     This specifies the level of translucency to use when rendering the fill.
 voidsetBackgroundColor(Expression backgroundColor)
     This parameter gives the solid color that will be used as a background for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign.
 voidsetColor(Expression color)
     This parameter gives the solid color that will be used for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign.
 voidsetGraphicFill(Graphic graphicFill)
     This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.
 voidsetOpacity(Expression opacity)
     This specifies the level of translucency to use when rendering the fill.

Field Detail
DEFAULT
final static Fill DEFAULT(Code)



NULL
final static Fill NULL(Code)





Method Detail
accept
void accept(StyleVisitor visitor)(Code)



getBackgroundColor
Expression getBackgroundColor()(Code)
This parameter gives the solid color that will be used as a background for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits beetween A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks). The default color is defined to be transparent. The background color of the Fill encoded as a hexidecimal RGBvalue.



getColor
Expression getColor()(Code)
This parameter gives the solid color that will be used for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits beetween A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks). The default color is defined to be 50% gray ("#808080"). Note: in CSS this parameter is just called Fill and not Color. The color of the Fill encoded as a hexidecimal RGB value.



getGraphicFill
Graphic getGraphicFill()(Code)
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use. The graphic to use as a stipple fill. If null then no stipplefill should be used.



getOpacity
Expression getOpacity()(Code)
This specifies the level of translucency to use when rendering the fill.
The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque, with a linear scale of translucency for intermediate values.
For example, "0.65" would represent 65% opacity. The default value is 1.0 (opaque). The opacity of the fill, where 0.0 is completely transparent and1.0 is completely opaque.



setBackgroundColor
void setBackgroundColor(Expression backgroundColor)(Code)
This parameter gives the solid color that will be used as a background for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits beetween A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks).
Parameters:
  backgroundColor - solid color that will be used as a background



setColor
void setColor(Expression color)(Code)
This parameter gives the solid color that will be used for a Fill.
The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits beetween A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks).
Parameters:
  color - solid color that will be used for a Fill



setGraphicFill
void setGraphicFill(Graphic graphicFill)(Code)
This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.
Parameters:
  graphicFill - DOCUMENT ME!



setOpacity
void setOpacity(Expression opacity)(Code)
This specifies the level of translucency to use when rendering the fill.
The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque, with a linear scale of translucency for intermediate values.
For example, "0.65" would represent 65% opacity.
Parameters:
  opacity - DOCUMENT ME!



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