Java Doc for Graphic.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.Graphic

All known Subclasses:   org.geotools.styling.GraphicImpl,
Graphic
public interface Graphic extends GTComponent(Code)
A Graphic is a "graphical symbol" with an inherent shape, color(s), and possibly size.

A "graphic" can very informally be defined as "a little picture" and can be of either a raster or vector graphic source type. The term graphic is used since the term "symbol" is similar to "symbolizer" which is used in a difference context in SLD. The graphical symbol to display can be provided either as an external graphical resource or as a Mark.
Multiple external URLs and marks can be referenced with the proviso that they all provide equivalent graphics in different formats. The 'hot spot' to use for positioning the rendering at a point must either be inherent from the external format or be defined to be the "central point" of the graphic.

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


 <xsd:element name="Graphic">
 <xsd:annotation>
 <xsd:documentation>
 A "Graphic" specifies or refers to a "graphic symbol" with inherent
 shape, size, and coloring.
 </xsd:documentation>
 </xsd:annotation>
 <xsd:complexType>
 <xsd:sequence>
 <xsd:choice minOccurs="0" maxOccurs="unbounded">
 <xsd:element ref="sld:ExternalGraphic"/>
 <xsd:element ref="sld:Mark"/>
 </xsd:choice>
 <xsd:sequence>
 <xsd:element ref="sld:Opacity" minOccurs="0"/>
 <xsd:element ref="sld:Size" minOccurs="0"/>
 <xsd:element ref="sld:Rotation" minOccurs="0"/>
 </xsd:sequence>
 </xsd:sequence>
 </xsd:complexType>
 </xsd:element>
 

Renderers can ue 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.



Field Summary
final public static  GraphicDEFAULT
     A default Graphic instance.
final public static  GraphicNULL
     Indicates an absense of graphic.

This value is used to indicate that the Graphics based opperation should be skipped.



Method Summary
 voidaccept(StyleVisitor visitor)
    
 voidaddExternalGraphic(ExternalGraphic externalGraphic)
    
 voidaddMark(Mark mark)
    
 voidaddSymbol(Symbol symbol)
    
 DisplacementgetDisplacement()
    
 ExternalGraphic[]getExternalGraphics()
     Provides a list of external graphics which can be used to represent this graphic.
 java.lang.StringgetGeometryPropertyName()
     Getter for property geometryPropertyName.
 Mark[]getMarks()
     Provides a list of suitable marks which can be used to represent this graphic.
 ExpressiongetOpacity()
     This specifies the level of translucency to use when rendering the graphic.
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.
 ExpressiongetRotation()
     This parameter defines the rotation of a graphic in the clockwise direction about its centre point in decimal degrees.
 ExpressiongetSize()
     This paramteter gives the absolute size of the graphic in pixels encoded as a floating point number.

The default size of an image format (such as GIFD) is the inherent size of the image.

 Symbol[]getSymbols()
     Provides a list of all the symbols which can be used to represent this graphic.
 voidsetDisplacement(Displacement offset)
    
 voidsetExternalGraphics(ExternalGraphic[] externalGraphics)
    
 voidsetGeometryPropertyName(java.lang.String geometryPropertyName)
     Setter for property geometryPropertyName.
 voidsetMarks(Mark[] marks)
    
 voidsetOpacity(Expression opacity)
    
 voidsetRotation(Expression rotation)
    
 voidsetSize(Expression size)
    
 voidsetSymbols(Symbol[] symbols)
    

Field Detail
DEFAULT
final public static Graphic DEFAULT(Code)
A default Graphic instance.

For some attributes the standard does not define a default, so a reasonable value is supplied.




NULL
final public static Graphic NULL(Code)
Indicates an absense of graphic.

This value is used to indicate that the Graphics based opperation should be skipped. Aka this is used by Stroke.Stroke as place holders for GRAPHIC_FILL and GRAPHIC_STROKE.






Method Detail
accept
void accept(StyleVisitor visitor)(Code)
accepts a StyleVisitor - used by xmlencoder and other packages which need to walk the style tree
Parameters:
  visitor - - the visitor object



addExternalGraphic
void addExternalGraphic(ExternalGraphic externalGraphic)(Code)



addMark
void addMark(Mark mark)(Code)



addSymbol
void addSymbol(Symbol symbol)(Code)



getDisplacement
Displacement getDisplacement()(Code)



getExternalGraphics
ExternalGraphic[] getExternalGraphics()(Code)
Provides a list of external graphics which can be used to represent this graphic. Each one should be an equivalent representation but in a different format. If none are provided, or if none of the formats are supported, then the list of Marks should be used instead. An array of ExternalGraphics objects which should be equivalentsbut in different formats. If null is returned, use getMarksinstead.



getGeometryPropertyName
java.lang.String getGeometryPropertyName()(Code)
Getter for property geometryPropertyName. Value of property geometryPropertyName.



getMarks
Mark[] getMarks()(Code)
Provides a list of suitable marks which can be used to represent this graphic. These should only be used if no ExternalGraphic is provided, or if none of the external graphics formats are supported. An array of marks to use when displaying this Graphic. Bydefault, a "square" with 50% gray fill and black outline with asize of 6 pixels (unless a size is specified) is provided.



getOpacity
Expression getOpacity()(Code)
This specifies the level of translucency to use when rendering the graphic.
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 Graphic, where 0.0 is completely transparentand 1.0 is completely opaque.



getRotation
Expression getRotation()(Code)
This parameter defines the rotation of a graphic in the clockwise direction about its centre point in decimal degrees. The value encoded as a floating point number. The angle of rotation in decimal degrees. Negative valuesrepresent counter-clockwise rotation. The default is 0.0 (norotation).



getSize
Expression getSize()(Code)
This paramteter gives the absolute size of the graphic in pixels encoded as a floating point number.

The default size of an image format (such as GIFD) is the inherent size of the image. The default size of a format without an inherent size (such as SVG) is defined to be 16 pixels in height and the corresponding aspect in width. If a size is specified, the height of the graphic will be scaled to that size and the corresponding aspect will be used for the width.

The size of the graphic. The default is context specific.Negative values are not possible.



getSymbols
Symbol[] getSymbols()(Code)
Provides a list of all the symbols which can be used to represent this graphic. A symbol is an ExternalGraphic, Mark or any other object which implements the Symbol interface. These are returned in the order they were set. An array of symbols to use when displaying this Graphic. Bydefault, a "square" with 50% gray fill and black outline with asize of 6 pixels (unless a size is specified) is provided.



setDisplacement
void setDisplacement(Displacement offset)(Code)



setExternalGraphics
void setExternalGraphics(ExternalGraphic[] externalGraphics)(Code)



setGeometryPropertyName
void setGeometryPropertyName(java.lang.String geometryPropertyName)(Code)
Setter for property geometryPropertyName.
Parameters:
  geometryPropertyName - New value of property geometryPropertyName.



setMarks
void setMarks(Mark[] marks)(Code)



setOpacity
void setOpacity(Expression opacity)(Code)



setRotation
void setRotation(Expression rotation)(Code)



setSize
void setSize(Expression size)(Code)



setSymbols
void setSymbols(Symbol[] symbols)(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.