Java Doc for Graphic.java in  » GIS » deegree » org » deegree » graphics » sld » 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 » deegree » org.deegree.graphics.sld 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.deegree.graphics.sld.Graphic

Graphic
public class Graphic implements Marshallable(Code)
A Graphic is a "graphic symbol" with an inherent shape, color, and size. Graphics can either be referenced from an external URL in a common format (such as GIF or SVG) or may be derived from a Mark. Multiple external URLs may be referenced with the semantic that they all provide the same graphic in different formats. The "hot spot" to use for rendering at a point or the start and finish handle points to use for rendering a graphic along a line must either be inherent in the external format or are system- dependent. The default size of an image format (such as GIF) is the inherent size of the image. The default size of a format without an inherent size is 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 default if neither an ExternalURL nor a Mark is specified is to use the default Mark with a size of 6 pixels. The size is in pixels and the rotation is in degrees clockwise, with 0 (default) meaning no rotation. In the case that a Graphic is derived from a font-glyph Mark, the Size specified here will be used for the final rendering. Allowed CssParameters are "opacity", "size", and "rotation".
author:
   Andreas Poth
author:
   last edited by: $Author: mschneider $
version:
   $Revision: 10547 $, $Date: 2008-03-11 01:40:28 -0700 (Tue, 11 Mar 2008) $


Field Summary
final public static  doubleOPACITY_DEFAULT
    
final public static  doubleROTATION_DEFAULT
    
final public static  doubleSIZE_DEFAULT
    

Constructor Summary
protected  Graphic(Object[] marksAndExtGraphics, ParameterValueType opacity, ParameterValueType size, ParameterValueType rotation)
     Creates a new Graphic instance.
protected  Graphic(ParameterValueType opacity, ParameterValueType size, ParameterValueType rotation)
     Creates a new Graphic instance based on the default Mark: a square.
protected  Graphic()
     Creates a new Graphic instance based on the default Mark: a square.

Method Summary
public  voidaddMarksAndExtGraphic(Object object)
     Adds an Object to an object-array that enables the access to the stored ExternalGraphic and Mark -instances.
public  StringexportAsXML()
    
public  BufferedImagegetAsImage(Feature feature)
     Returns a BufferedImage representing this object.
public  Object[]getMarksAndExtGraphics()
     Returns an object-array that enables the access to the stored ExternalGraphic and Mark -instances.
public  ParameterValueTypegetOpacity()
    
public  doublegetOpacity(Feature feature)
     The Opacity element gives the opacity to use for rendering the graphic.
public  ParameterValueTypegetRotation()
    
public  doublegetRotation(Feature feature)
     The Rotation element gives the rotation of a graphic in the clockwise direction about its center point in radian, encoded as a floating- point number.
public  ParameterValueTypegetSize()
    
public  doublegetSize(Feature feature)
     The Size element gives the absolute size of the graphic in pixels encoded as a floating-point number.
public  voidremoveMarksAndExtGraphic(Object object)
     Removes an Object from an object-array that enables the access to the stored ExternalGraphic and Mark -instances.
public  voidsetAsImage(BufferedImage bufferedImage)
     Sets a BufferedImage representing this object.
public  voidsetMarksAndExtGraphics(Object[] object)
     Sets the ExternalGraphic/ Mark-instances that the image will be based on.
public  voidsetOpacity(double opacity)
     The Opacity element gives the opacity of to use for rendering the graphic.
public  voidsetRotation(double rotation)
    
public  voidsetSize(double size)
    

Field Detail
OPACITY_DEFAULT
final public static double OPACITY_DEFAULT(Code)



ROTATION_DEFAULT
final public static double ROTATION_DEFAULT(Code)



SIZE_DEFAULT
final public static double SIZE_DEFAULT(Code)




Constructor Detail
Graphic
protected Graphic(Object[] marksAndExtGraphics, ParameterValueType opacity, ParameterValueType size, ParameterValueType rotation)(Code)
Creates a new Graphic instance.


Parameters:
  marksAndExtGraphics - the image will be based upon these
Parameters:
  opacity - opacity that the resulting image will have
Parameters:
  size - image height will be scaled to this value, respecting the proportions
Parameters:
  rotation - image will be rotated clockwise for positive values, negative values result inanti-clockwise rotation




Graphic
protected Graphic(ParameterValueType opacity, ParameterValueType size, ParameterValueType rotation)(Code)
Creates a new Graphic instance based on the default Mark: a square.


Parameters:
  opacity - opacity that the resulting image will have
Parameters:
  size - image height will be scaled to this value, respecting the proportions
Parameters:
  rotation - image will be rotated clockwise for positive values, negative values result inanti-clockwise rotation




Graphic
protected Graphic()(Code)
Creates a new Graphic instance based on the default Mark: a square.




Method Detail
addMarksAndExtGraphic
public void addMarksAndExtGraphic(Object object)(Code)
Adds an Object to an object-array that enables the access to the stored ExternalGraphic and Mark -instances.


Parameters:
  object - to be used as basis for the resulting image




exportAsXML
public String exportAsXML()(Code)
exports the content of the Graphic as XML formated String xml representation of the Graphic



getAsImage
public BufferedImage getAsImage(Feature feature) throws FilterEvaluationException(Code)
Returns a BufferedImage representing this object. The image respects the 'Opacity', 'Size' and 'Rotation' parameters. If the 'Size'-parameter is omitted, the height of the first ExternalGraphic is used. If there is none, the default value of 6 pixels is used.

the BufferedImage ready to be painted
throws:
  FilterEvaluationException - if the evaluation fails




getMarksAndExtGraphics
public Object[] getMarksAndExtGraphics()(Code)
Returns an object-array that enables the access to the stored ExternalGraphic and Mark -instances.

contains ExternalGraphic and Mark -objects




getOpacity
public ParameterValueType getOpacity()(Code)
returns the ParameterValueType representation of opacity the ParameterValueType representation of opacity



getOpacity
public double getOpacity(Feature feature) throws FilterEvaluationException(Code)
The Opacity element gives the opacity to use for rendering the graphic.


Parameters:
  feature - specifies the Feature to be used for evaluation of the underlying'sld:ParameterValueType' the (evaluated) value of the parameter
throws:
  FilterEvaluationException - if the evaluation fails or the value is invalid




getRotation
public ParameterValueType getRotation()(Code)
returns the ParameterValueType representation of rotation the ParameterValueType representation of rotation



getRotation
public double getRotation(Feature feature) throws FilterEvaluationException(Code)
The Rotation element gives the rotation of a graphic in the clockwise direction about its center point in radian, encoded as a floating- point number. Negative values mean counter-clockwise rotation. The default value is 0.0 (no rotation).


Parameters:
  feature - specifies the Feature to be used for evaluation of the underlying'sld:ParameterValueType' the (evaluated) value of the parameter
throws:
  FilterEvaluationException - if the evaluation fails or the value is invalid




getSize
public ParameterValueType getSize()(Code)
returns the ParameterValueType representation of size the ParameterValueType representation of size



getSize
public double getSize(Feature feature) throws FilterEvaluationException(Code)
The Size element gives the absolute size of the graphic in pixels encoded as a floating-point number. This element is also used in other contexts than graphic size and pixel units are still used even for font size. The default size for an object is context-dependent. Negative values are not allowed.


Parameters:
  feature - specifies the Feature to be used for evaluation of the underlying'sld:ParameterValueType' the (evaluated) value of the parameter
throws:
  FilterEvaluationException - if the evaluation fails or the value is invalid




removeMarksAndExtGraphic
public void removeMarksAndExtGraphic(Object object)(Code)
Removes an Object from an object-array that enables the access to the stored ExternalGraphic and Mark -instances.


Parameters:
  object - to be used as basis for the resulting image




setAsImage
public void setAsImage(BufferedImage bufferedImage)(Code)
Sets a BufferedImage representing this object. The image respects the 'Opacity', 'Size' and 'Rotation' parameters.


Parameters:
  bufferedImage - BufferedImage to be set




setMarksAndExtGraphics
public void setMarksAndExtGraphics(Object[] object)(Code)
Sets the ExternalGraphic/ Mark-instances that the image will be based on.


Parameters:
  object - to be used as basis for the resulting image




setOpacity
public void setOpacity(double opacity)(Code)
The Opacity element gives the opacity of to use for rendering the graphic.


Parameters:
  opacity - Opacity to be set for the graphic




setRotation
public void setRotation(double rotation)(Code)

See Also:   org.deegree.graphics.sld.Graphic.getRotation(Feature)
See Also:   


Parameters:
  rotation - rotation to be set for the graphic




setSize
public void setSize(double size)(Code)

See Also:   org.deegree.graphics.sld.Graphic.getSize(Feature)
See Also:   


Parameters:
  size - size to be set for the graphic




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.