Java Doc for Glyph.java in  » GIS » udig-1.1 » net » refractions » udig » ui » graphics » 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 » udig 1.1 » net.refractions.udig.ui.graphics 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.refractions.udig.ui.graphics.Glyph

Glyph
public class Glyph (Code)
Utility methods to create common ImageDescriptors.
author:
   jgarnett
since:
   0.7.0


Field Summary
final static  intDEFAULT_DEPTH
    
final public static  intWHITE
    
static  Drawingd
    


Method Summary
static  org.eclipse.swt.graphics.Colorcolor(Color color)
    
static  ImageDataextractImageDataAndDispose(Image image)
    
public static  ImageDescriptorgeometry(Rule rule)
     Complex render of Geometry allowing presentation of point, line and polygon styles.
public static  ImageDescriptorgeometry(Color color, Color fill)
     Icon for generic Geometry or Geometry Collection.
public static  ImageDescriptorgrid(Color a, Color b, Color c, Color d1)
     Icon for grid data, small grid made up of provided colors.
public static  ImageDescriptoricon(FeatureType ft)
    
public static  Imageimage(Display display)
     Create a transparent image, this is a *real* resource against the provided display.
public static  ImageDescriptorline(Rule rule)
     Complex render of Geometry allowing presentation of point, line and polygon styles.
public static  ImageDescriptorline(Color color, int width)
     Icon for linestring in the provided color and width.
public static  ImageDescriptorpalette(Color c)
     Icon for grid data, small grid made up of provided colors.
public static  ImageDescriptorpoint(Rule rule)
     Render a icon based on the current style.
public static  ImageDescriptorpoint(Color color, Color fill)
     Icon for point data in the provided color

XXX: Suggest point( SLD style ) at a later time.

public static  ImageDescriptorpolygon(Rule rule)
     Render of a polygon allowing style.
public static  ImageDescriptorpolygon(Color color, Color fill, int width)
    
public static  ImageDescriptorpush(ImageDescriptor icon)
    
public static  ImageDescriptorswatch(Color c)
     Render of a color swatch allowing style.

Field Detail
DEFAULT_DEPTH
final static int DEFAULT_DEPTH(Code)



WHITE
final public static int WHITE(Code)



d
static Drawing d(Code)
Utility class for working with Images, Features and Styles





Method Detail
color
static org.eclipse.swt.graphics.Color color(Color color)(Code)
Convert Color to to SWT
Parameters:
  color - SWT Color



extractImageDataAndDispose
static ImageData extractImageDataAndDispose(Image image)(Code)



geometry
public static ImageDescriptor geometry(Rule rule)(Code)
Complex render of Geometry allowing presentation of point, line and polygon styles.

Layout:


 1 2 3 4 5 6 7 8 9101112131415
 0
 1 
 2
 3           L                 L                  
 4       p  L L           PPPPPP
 5         L   L     PPPPP   L p
 6        L     LPPPP       L  p
 7       L    PPPL         L   p
 8      L   PP    L       L    p
 9     L   P       L     L     P
 10    L   P         L   L      P
 11   L   P           L L       P
 12  L   P             L        P
 13      p                      P
 14      PPPPPPPPPPPPPPPPPPPPPPPP    
 15
 
 


Parameters:
  style - Icon representing geometry style



geometry
public static ImageDescriptor geometry(Color color, Color fill)(Code)
Icon for generic Geometry or Geometry Collection.
Parameters:
  color -
Parameters:
  fill - Icon



grid
public static ImageDescriptor grid(Color a, Color b, Color c, Color d1)(Code)
Icon for grid data, small grid made up of provided colors.

Layout:


 0 1 2 3 4 5 6 7 8 9 101112131415
 0  
 1   AAAAAAAAAAAAABBBBBBBBBBBBBB           
 2   AAAAAAAAAAAAABBBBBBBBBBBBBB
 3   AAAAAAAAAAAAABBBBBBBBBBBBBB                  
 4   AAAAAAAAAAAAABBBBBBBBBBBBBB
 5   AAAAAAAAAAAAABBBBBBBBBBBBBB
 6   AAAAAAAAAAAAABBBBBBBBBBBBBB
 7   AAAAAAAAAAAAABBBBBBBBBBBBBB
 8   CCCCCCCCCCCCCDDDDDDDDDDDDDD
 9   CCCCCCCCCCCCCDDDDDDDDDDDDDD
 10   CCCCCCCCCCCCCDDDDDDDDDDDDDD
 11   CCCCCCCCCCCCCDDDDDDDDDDDDDD
 12   CCCCCCCCCCCCCDDDDDDDDDDDDDD
 13   CCCCCCCCCCCCCDDDDDDDDDDDDDD
 14   CCCCCCCCCCCCCDDDDDDDDDDDDDD
 15
 
 


Parameters:
  a -
Parameters:
  b -
Parameters:
  c -
Parameters:
  d1 - Icon representing a grid



icon
public static ImageDescriptor icon(FeatureType ft)(Code)



image
public static Image image(Display display)(Code)
Create a transparent image, this is a *real* resource against the provided display.
Parameters:
  display -
Parameters:
  rgb -



line
public static ImageDescriptor line(Rule rule)(Code)
Complex render of Geometry allowing presentation of point, line and polygon styles.

Layout:


 1 2 3 4 5 6 7 8 9101112131415
 0
 1          LL                 L  
 2          L L                L
 3         L  L               L                   
 4        L    L             L  
 5        L     L            L  
 6       L      L           L   
 7      L        L         L    
 8      L         L        L    
 9     L          L       L     
 10    L            L     L      
 11    L             L    L      
 12   L              L   L       
 13  L                L L        
 14  L                 LL            
 15
 
 


Parameters:
  style - Icon representing geometry style



line
public static ImageDescriptor line(Color color, int width)(Code)
Icon for linestring in the provided color and width.

XXX: Suggest line( SLD style ) at a later time.


Parameters:
  black - Icon



palette
public static ImageDescriptor palette(Color c)(Code)
Icon for grid data, small grid made up of provided colors. Layout:

 0 1 2 3 4 5 6 7 8 9 101112131415
 0  
 1 AABBCDEEFfGgHhIiJjKkllmmnnoopp           
 2 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 3 AABBCDEEFfGgHhIiJjKkllmmnnoopp                 
 4 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 5 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 6 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 7 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 8 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 9 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 10 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 11 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 12 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 14 AABBCDEEFfGgHhIiJjKkllmmnnoopp
 15
 
 


Parameters:
  c - palette of colors Icon representing a palette



point
public static ImageDescriptor point(Rule rule)(Code)
Render a icon based on the current style.

Simple render of point in the center of the screen.


Parameters:
  style - Icon representing style applyed to an image



point
public static ImageDescriptor point(Color color, Color fill)(Code)
Icon for point data in the provided color

XXX: Suggest point( SLD style ) at a later time.


Parameters:
  color -
Parameters:
  fill - ImageDescriptor



polygon
public static ImageDescriptor polygon(Rule rule)(Code)
Render of a polygon allowing style.

Layout:


 1 2 3 4 5 6 7 8 9101112131415
 0
 1             
 2                      PPPPPPPP
 3                PPPPPP       P                  
 4           PPPPPP            P
 5        PPP                  p
 6      PP                     p
 7     P                       p
 8    P                        p
 9   P                         P
 10   P                         P
 11  P                          P
 12  P                          P
 13  P                          P
 14  PPPPPPPPPPPPPPPPPPPPPPPPPPPP    
 15
 
 


Parameters:
  style - Icon representing geometry style



polygon
public static ImageDescriptor polygon(Color color, Color fill, int width)(Code)
Icon for polygon in provided border, fill and width
Parameters:
  black -
Parameters:
  gray -
Parameters:
  i -



push
public static ImageDescriptor push(ImageDescriptor icon)(Code)



swatch
public static ImageDescriptor swatch(Color c)(Code)
Render of a color swatch allowing style.

Layout:


 0 1 2 3 4 5 6 7 8 9 101112131415
 0  
 1  dddddddddddddddddddddddddddd           
 2 dCCCCCCCCCCCCCCCCCCCCCcCCCCCCd
 3 dCCCCCCCCCCCCCCCCCCCCCCcCCCCCd                  
 4 dCCCCCCCCCCCCCCCCCCCCCCCcCCCCd
 5 dCCCCCCCCCCCCCCCCCCCCCCCCcCCCd
 6 dCCCCCCCCCCCCCCCCCCCCCCCCCcCCd
 7 dCCCCCCCCCCCCCCCCCCCCCCCCCCcCd
 8 dCcCCCCCCCCCCCCCCCCCCCCCCCCCCd
 9 dCCcCCCCCCCCCCCCCCCCCCCCCCCCCd
 10 dCCCcCCCCCCCCCCCCCCCCCCCCCCCCd
 11 dCCCCcCCCCCCCCCCCCCCCCCCCCCCCd
 12 dCCCCCcCCCCCCCCCCCCCCCCCCCCCCd
 13 ddCCCCCcCCCCCCCCCCCCCCCCCCCCdd
 14  ddddddddddddddddddddddddddd
 15    
 
 


Parameters:
  style - Icon representing geometry style



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.