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

NonAdvancedSWTGraphics
public class NonAdvancedSWTGraphics implements ViewportGraphics(Code)
A Graphics object that wraps SWT's GC object
author:
   jeichar
since:
   0.3


Field Summary
final public static  intTRANSPARENT
    

Constructor Summary
public  NonAdvancedSWTGraphics(Image image, Display display)
     Construct SWTGraphics.
public  NonAdvancedSWTGraphics(GC gc, Display display, Dimension displaySize)
     Construct SWTGraphics.

Method Summary
public  voidclearRect(int x, int y, int width, int height)
    
public static  BufferedImagecreateBufferedImage(int w, int h)
    
public static  ImagecreateDefaultImage(Display display, int width, int height)
    
public static  ImageDatacreateImageData(RenderedImage image, boolean transparent)
    
public static  ImageDatacreateImageDataFromBytes(RenderedImage image)
    
public static  ImageDescriptorcreateImageDescriptor(RenderedImage image, boolean transparent)
    
public static  ImagecreateSWTImage(RenderedImage image, boolean transparent)
    
public  voiddispose()
    
public  voiddraw(Shape s)
    
public  voiddrawImage(RenderedImage rimage, int x, int y)
    
public  voiddrawImage(java.awt.Image image, int x, int y)
    
public  voiddrawImage(java.awt.Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)
    
public  voiddrawImage(RenderedImage rimage, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)
    
public  voiddrawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)
    
public  voiddrawImage(Image swtImage, int x, int y)
    
public  voiddrawLine(int x1, int y1, int x2, int y2)
    
public  voiddrawOval(int x, int y, int width, int height)
    
public  voiddrawPath(Path path)
    
public  voiddrawRect(int x, int y, int width, int height)
    
public  voiddrawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
    
public  voiddrawString(String string, int x, int y, int alignx, int aligny)
    
public  voidfill(Shape s)
    
public  voidfillOval(int x, int y, int width, int height)
    
public  voidfillPath(Path path)
    
public  voidfillRect(int x, int y, int width, int height)
    
public  voidfillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
    
public  java.awt.ColorgetBackgroundColor()
    
public  ShapegetClip()
    
public  java.awt.ColorgetColor()
    
public  intgetFontAscent()
    
public  intgetFontHeight()
    
public  Rectangle2DgetStringBounds(String str)
    
public  AffineTransformgetTransform()
    
public  voidsetAffineTransform(AffineTransform t)
     Sets an affine transformation for drawing shapes.
public  voidsetBackground(java.awt.Color c)
     This is hard because - background doesn't mean what we think it means.
public  voidsetClip(java.awt.Rectangle r)
    
public  voidsetClipBounds(java.awt.Rectangle newBounds)
    
public  voidsetColor(java.awt.Color c)
    
 voidsetGraphics(GC gc, Display display)
    
public  voidsetStroke(int style, int width)
    
public  voidsetTransform(AffineTransform transform)
    
public  intstringWidth(String str)
    
public  voidtranslate(Point offset)
    

Field Detail
TRANSPARENT
final public static int TRANSPARENT(Code)
The TRANSPARENT color




Constructor Detail
NonAdvancedSWTGraphics
public NonAdvancedSWTGraphics(Image image, Display display)(Code)
Construct SWTGraphics.
Parameters:
  Image - image
Parameters:
  display - The display object



NonAdvancedSWTGraphics
public NonAdvancedSWTGraphics(GC gc, Display display, Dimension displaySize)(Code)
Construct SWTGraphics.
Parameters:
  gc - The GC object
Parameters:
  display - The display object




Method Detail
clearRect
public void clearRect(int x, int y, int width, int height)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.clearRect(intintintint)



createBufferedImage
public static BufferedImage createBufferedImage(int w, int h)(Code)
Create a buffered image that can be be coverted to SWTland later



createDefaultImage
public static Image createDefaultImage(Display display, int width, int height)(Code)



createImageData
public static ImageData createImageData(RenderedImage image, boolean transparent)(Code)



createImageDataFromBytes
public static ImageData createImageDataFromBytes(RenderedImage image)(Code)



createImageDescriptor
public static ImageDescriptor createImageDescriptor(RenderedImage image, boolean transparent)(Code)



createSWTImage
public static Image createSWTImage(RenderedImage image, boolean transparent)(Code)



dispose
public void dispose()(Code)



draw
public void draw(Shape s)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.draw(java.awt.Shape)



drawImage
public void drawImage(RenderedImage rimage, int x, int y)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.drawImage(javax.media.jai.PlanarImageintint)



drawImage
public void drawImage(java.awt.Image image, int x, int y)(Code)

See Also:   net.refractions.udig.ui.graphics.ViewportGraphics.drawImage(java.awt.Imageintint)
See Also:   Current version can only draw Image if the image is an RenderedImage



drawImage
public void drawImage(java.awt.Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)(Code)

See Also:   net.refractions.udig.ui.graphics.ViewportGraphics.drawImage(java.awt.Imageintintintintintintintint)



drawImage
public void drawImage(RenderedImage rimage, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)(Code)



drawImage
public void drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2)(Code)



drawImage
public void drawImage(Image swtImage, int x, int y)(Code)



drawLine
public void drawLine(int x1, int y1, int x2, int y2)(Code)



drawOval
public void drawOval(int x, int y, int width, int height)(Code)



drawPath
public void drawPath(Path path)(Code)



drawRect
public void drawRect(int x, int y, int width, int height)(Code)



drawRoundRect
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)



drawString
public void drawString(String string, int x, int y, int alignx, int aligny)(Code)



fill
public void fill(Shape s)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.draw(java.awt.Shape)



fillOval
public void fillOval(int x, int y, int width, int height)(Code)



fillPath
public void fillPath(Path path)(Code)



fillRect
public void fillRect(int x, int y, int width, int height)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.fillRect(intintintint)



fillRoundRect
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)



getBackgroundColor
public java.awt.Color getBackgroundColor()(Code)



getClip
public Shape getClip()(Code)



getColor
public java.awt.Color getColor()(Code)



getFontAscent
public int getFontAscent()(Code)



getFontHeight
public int getFontHeight()(Code)



getStringBounds
public Rectangle2D getStringBounds(String str)(Code)



getTransform
public AffineTransform getTransform()(Code)



setAffineTransform
public void setAffineTransform(AffineTransform t)(Code)
Sets an affine transformation for drawing shapes.
Parameters:
  t - The transform.



setBackground
public void setBackground(java.awt.Color c)(Code)
This is hard because - background doesn't mean what we think it means.
See Also:   net.refractions.udig.project.render.ViewportGraphics.setBackground(java.awt.Color)



setClip
public void setClip(java.awt.Rectangle r)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.setClip(java.awt.Rectangle)



setClipBounds
public void setClipBounds(java.awt.Rectangle newBounds)(Code)



setColor
public void setColor(java.awt.Color c)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.setColor(java.awt.Color)



setGraphics
void setGraphics(GC gc, Display display)(Code)



setStroke
public void setStroke(int style, int width)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.setStroke(intint)



setTransform
public void setTransform(AffineTransform transform)(Code)



stringWidth
public int stringWidth(String str)(Code)



translate
public void translate(Point offset)(Code)

See Also:   net.refractions.udig.project.render.ViewportGraphics.translate(java.awt.Point)



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.