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


java.lang.Object
   org.geotools.event.AbstractGTComponent
      org.geotools.styling.GraphicImpl

GraphicImpl
public class GraphicImpl extends AbstractGTComponent implements Graphic,Cloneable(Code)
DOCUMENT ME!
author:
   Ian Turton, CCG
version:
   $Id: GraphicImpl.java 27862 2007-11-12 19:51:19Z desruisseaux $



Constructor Summary
protected  GraphicImpl()
    
public  GraphicImpl(FilterFactory factory)
    

Method Summary
public  voidaccept(StyleVisitor visitor)
    
public  voidaddExternalGraphic(ExternalGraphic externalGraphic)
    
public  voidaddMark(Mark mark)
    
public  voidaddSymbol(Symbol symbol)
    
public  Objectclone()
     Creates a deep copy clone.
public  booleanequals(Object oth)
     Compares this GraphicImpl with another for equality.

Two graphics are equal if and only if they both have the same geometry property name and the same list of symbols and the same rotation, size and opacity.


Parameters:
  oth - The other GraphicsImpl to compare with.
public  DisplacementgetDisplacement()
    
public  ExternalGraphic[]getExternalGraphics()
     Provides a list of external graphics which can be used to represent this graphic.
public  java.lang.StringgetGeometryPropertyName()
     Getter for property geometryPropertyName.
public  Mark[]getMarks()
     Provides a list of suitable marks which can be used to represent this graphic.
public  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.
public  ExpressiongetRotation()
     This parameter defines the rotation of a graphic in the clockwise direction about its centre point in decimal degrees.
public  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.

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


Constructor Detail
GraphicImpl
protected GraphicImpl()(Code)
Creates a new instance of DefaultGraphic



GraphicImpl
public GraphicImpl(FilterFactory factory)(Code)




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



addExternalGraphic
public void addExternalGraphic(ExternalGraphic externalGraphic)(Code)



addMark
public void addMark(Mark mark)(Code)



addSymbol
public void addSymbol(Symbol symbol)(Code)



clone
public Object clone()(Code)
Creates a deep copy clone. The deep copy clone.
throws:
  RuntimeException - DOCUMENT ME!



equals
public boolean equals(Object oth)(Code)
Compares this GraphicImpl with another for equality.

Two graphics are equal if and only if they both have the same geometry property name and the same list of symbols and the same rotation, size and opacity.


Parameters:
  oth - The other GraphicsImpl to compare with. True if this is equal to oth according to the above conditions.



getDisplacement
public Displacement getDisplacement()(Code)



getExternalGraphics
public 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
public java.lang.String getGeometryPropertyName()(Code)
Getter for property geometryPropertyName. Value of property geometryPropertyName.



getMarks
public 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
public 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
public 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
public 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
public 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.



hashCode
public int hashCode()(Code)
Override of hashcode The hashcode.



setDisplacement
public void setDisplacement(Displacement offset)(Code)



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



setFilterFactory
public void setFilterFactory(FilterFactory factory)(Code)



setGeometryPropertyName
public void setGeometryPropertyName(String name)(Code)



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



setOpacity
public void setOpacity(Expression opacity)(Code)
Setter for property opacity.
Parameters:
  opacity - New value of property opacity.



setOpacity
public void setOpacity(double opacity)(Code)



setRotation
public void setRotation(Expression rotation)(Code)
Setter for property rotation.
Parameters:
  rotation - New value of property rotation.



setRotation
public void setRotation(double rotation)(Code)



setSize
public void setSize(Expression size)(Code)
Setter for property size.
Parameters:
  size - New value of property size.



setSize
public void setSize(int size)(Code)



setSymbols
public void setSymbols(Symbol[] symbols)(Code)



Fields inherited from org.geotools.event.AbstractGTComponent
protected GTNote notification(Code)(Java Doc)

Methods inherited from org.geotools.event.AbstractGTComponent
public void changed(GTDelta childDelta)(Code)(Java Doc)
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
protected void fireChanged()(Code)(Java Doc)
protected synchronized void fireChildChanged(String name, Object child, Object oldValue)(Code)(Java Doc)
public GTNote getNote()(Code)(Java Doc)
public GTComponent getParent()(Code)(Java Doc)
public void removed(GTDelta childDelta)(Code)(Java Doc)
public void setNote(GTNote container)(Code)(Java Doc)

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.