Java Doc for SWTGraphics2D.java in  » Chart » jfreechart » org » jfree » experimental » swt » 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 » Chart » jfreechart » org.jfree.experimental.swt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.Graphics
      java.awt.Graphics2D
         org.jfree.experimental.swt.SWTGraphics2D

SWTGraphics2D
public class SWTGraphics2D extends Graphics2D (Code)
This is a class utility to draw Graphics2D stuff on a swt composite. It is presently developed to use JFreeChart with the Standard Widget Toolkit but may be of a wider use later.



Constructor Summary
public  SWTGraphics2D(GC gc)
     Creates a new instance.

Method Summary
public  voidaddRenderingHints(Map hints)
    
public  voidclearRect(int x, int y, int width, int height)
    
public  voidclip(Shape s)
    
public  voidclipRect(int x, int y, int width, int height)
    
static  ImageDataconvertToSWT(BufferedImage bufferedImage)
    
public  voidcopyArea(int x, int y, int width, int height, int dx, int dy)
    
public  Graphicscreate()
    
public  voiddispose()
    
public  voiddraw(Shape shape)
    
public  voiddrawArc(int x, int y, int width, int height, int arcStart, int arcAngle)
    
public  voiddrawGlyphVector(GlyphVector g, float x, float y)
    
public  booleandrawImage(Image image, AffineTransform xform, ImageObserver obs)
    
public  voiddrawImage(BufferedImage image, BufferedImageOp op, int x, int y)
    
public  voiddrawImage(org.eclipse.swt.graphics.Image image, int x, int y)
     Draws an image at (x, y).
public  booleandrawImage(Image image, int x, int y, ImageObserver observer)
    
public  booleandrawImage(Image image, int x, int y, int width, int height, ImageObserver observer)
    
public  booleandrawImage(Image image, int x, int y, Color bgcolor, ImageObserver observer)
    
public  booleandrawImage(Image image, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
    
public  booleandrawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
    
public  booleandrawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
    
public  voiddrawLine(int x1, int y1, int x2, int y2)
     Draws a line on the swt graphic composite.
public  voiddrawOval(int x, int y, int width, int height)
    
public  voiddrawPolygon(int[] xPoints, int[] yPoints, int npoints)
    
public  voiddrawPolyline(int[] xPoints, int[] yPoints, int npoints)
    
public  voiddrawRenderableImage(RenderableImage image, AffineTransform xform)
    
public  voiddrawRenderedImage(RenderedImage image, AffineTransform xform)
    
public  voiddrawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
    
public  voiddrawString(String text, int x, int y)
     Draws a string on the receiver.
public  voiddrawString(String text, float x, float y)
    
public  voiddrawString(AttributedCharacterIterator iterator, int x, int y)
    
public  voiddrawString(AttributedCharacterIterator iterator, float x, float y)
    
public  voidfill(Shape shape)
     fill an arbitrary shape on the swt graphic composite with the current stroke and paint.
public  voidfillArc(int x, int y, int width, int height, int arcStart, int arcAngle)
    
public  voidfillOval(int x, int y, int width, int height)
    
public  voidfillPolygon(int[] xPoints, int[] yPoints, int npoints)
    
public  voidfillRect(int x, int y, int width, int height)
     Fill a rectangle area on the swt graphic composite.
public  voidfillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
    
public  ColorgetBackground()
    
public  ShapegetClip()
    
public  RectanglegetClipBounds()
    
public  ColorgetColor()
    
public  CompositegetComposite()
    
public  GraphicsConfigurationgetDeviceConfiguration()
    
public  FontgetFont()
     Returns the font in form of an awt font created with the parameters of the font of the swt graphic composite.
public  FontMetricsgetFontMetrics(Font font)
    
public  FontRenderContextgetFontRenderContext()
    
public  PaintgetPaint()
    
public  ObjectgetRenderingHint(Key hintKey)
    
public  RenderingHintsgetRenderingHints()
    
public  StrokegetStroke()
    
public  AffineTransformgetTransform()
    
public  booleanhit(Rectangle rect, Shape text, boolean onStroke)
    
public  voidrotate(double theta)
    
public  voidrotate(double theta, double x, double y)
    
public  voidscale(double scaleX, double scaleY)
    
public  voidsetBackground(Color color)
    
public  voidsetClip(int x, int y, int width, int height)
    
public  voidsetClip(Shape clip)
    
public  voidsetColor(Color color)
    
public  voidsetComposite(Composite comp)
    
public  voidsetFont(Font font)
     Set the font swt graphic composite from the specified awt font.
public  voidsetPaint(Paint paint)
     Set the paint associated with the swt graphic composite.
public  voidsetPaintMode()
    
public  voidsetRenderingHint(Key hintKey, Object hintValue)
    
public  voidsetRenderingHints(Map hints)
    
public  voidsetStroke(Stroke stroke)
    
public  voidsetTransform(AffineTransform Tx)
    
public  voidsetXORMode(Color color)
    
public  voidshear(double shearX, double shearY)
    
public  voidtransform(AffineTransform Tx)
    
public  voidtranslate(int x, int y)
    
public  voidtranslate(double tx, double ty)
    


Constructor Detail
SWTGraphics2D
public SWTGraphics2D(GC gc)(Code)
Creates a new instance.
Parameters:
  gc - the graphics context.




Method Detail
addRenderingHints
public void addRenderingHints(Map hints)(Code)



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



clip
public void clip(Shape s)(Code)



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



convertToSWT
static ImageData convertToSWT(BufferedImage bufferedImage)(Code)



copyArea
public void copyArea(int x, int y, int width, int height, int dx, int dy)(Code)



create
public Graphics create()(Code)



dispose
public void dispose()(Code)



draw
public void draw(Shape shape)(Code)



drawArc
public void drawArc(int x, int y, int width, int height, int arcStart, int arcAngle)(Code)



drawGlyphVector
public void drawGlyphVector(GlyphVector g, float x, float y)(Code)



drawImage
public boolean drawImage(Image image, AffineTransform xform, ImageObserver obs)(Code)



drawImage
public void drawImage(BufferedImage image, BufferedImageOp op, int x, int y)(Code)



drawImage
public void drawImage(org.eclipse.swt.graphics.Image image, int x, int y)(Code)
Draws an image at (x, y).
Parameters:
  image - the image.
Parameters:
  x - the x-coordinate.
Parameters:
  y - the y-coordinate.



drawImage
public boolean drawImage(Image image, int x, int y, ImageObserver observer)(Code)



drawImage
public boolean drawImage(Image image, int x, int y, int width, int height, ImageObserver observer)(Code)



drawImage
public boolean drawImage(Image image, int x, int y, Color bgcolor, ImageObserver observer)(Code)



drawImage
public boolean drawImage(Image image, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)(Code)



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



drawImage
public boolean drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)(Code)



drawLine
public void drawLine(int x1, int y1, int x2, int y2)(Code)
Draws a line on the swt graphic composite.
See Also:   java.awt.Graphics.drawLine(intintintint)



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



drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int npoints)(Code)



drawPolyline
public void drawPolyline(int[] xPoints, int[] yPoints, int npoints)(Code)



drawRenderableImage
public void drawRenderableImage(RenderableImage image, AffineTransform xform)(Code)



drawRenderedImage
public void drawRenderedImage(RenderedImage image, AffineTransform xform)(Code)



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



drawString
public void drawString(String text, int x, int y)(Code)
Draws a string on the receiver. note that to be consistent with the awt method, the y has to be modified with the ascent of the font.
See Also:   java.awt.Graphics.drawString(java.lang.Stringintint)



drawString
public void drawString(String text, float x, float y)(Code)



drawString
public void drawString(AttributedCharacterIterator iterator, int x, int y)(Code)



drawString
public void drawString(AttributedCharacterIterator iterator, float x, float y)(Code)



fill
public void fill(Shape shape)(Code)
fill an arbitrary shape on the swt graphic composite with the current stroke and paint. note that for consistency with the awt method, it is needed to switch temporarily the foreground and background colors.
See Also:   java.awt.Graphics2D.fill(java.awt.Shape)



fillArc
public void fillArc(int x, int y, int width, int height, int arcStart, int arcAngle)(Code)



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



fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int npoints)(Code)



fillRect
public void fillRect(int x, int y, int width, int height)(Code)
Fill a rectangle area on the swt graphic composite. The fillRectangle method of the GC class uses the background color so we must switch colors.
See Also:   java.awt.Graphics.fillRect(intintintint)



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



getBackground
public Color getBackground()(Code)



getClip
public Shape getClip()(Code)



getClipBounds
public Rectangle getClipBounds()(Code)



getColor
public Color getColor()(Code)



getComposite
public Composite getComposite()(Code)



getDeviceConfiguration
public GraphicsConfiguration getDeviceConfiguration()(Code)



getFont
public Font getFont()(Code)
Returns the font in form of an awt font created with the parameters of the font of the swt graphic composite.
See Also:   java.awt.Graphics.getFont



getFontMetrics
public FontMetrics getFontMetrics(Font font)(Code)



getFontRenderContext
public FontRenderContext getFontRenderContext()(Code)



getPaint
public Paint getPaint()(Code)



getRenderingHint
public Object getRenderingHint(Key hintKey)(Code)



getRenderingHints
public RenderingHints getRenderingHints()(Code)



getStroke
public Stroke getStroke()(Code)



getTransform
public AffineTransform getTransform()(Code)



hit
public boolean hit(Rectangle rect, Shape text, boolean onStroke)(Code)



rotate
public void rotate(double theta)(Code)



rotate
public void rotate(double theta, double x, double y)(Code)



scale
public void scale(double scaleX, double scaleY)(Code)



setBackground
public void setBackground(Color color)(Code)



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



setClip
public void setClip(Shape clip)(Code)



setColor
public void setColor(Color color)(Code)



setComposite
public void setComposite(Composite comp)(Code)



setFont
public void setFont(Font font)(Code)
Set the font swt graphic composite from the specified awt font. Be careful that the newly created swt font must be disposed separately.
See Also:   java.awt.Graphics.setFont(java.awt.Font)



setPaint
public void setPaint(Paint paint)(Code)
Set the paint associated with the swt graphic composite.
See Also:   java.awt.Graphics2D.setPaint(java.awt.Paint)



setPaintMode
public void setPaintMode()(Code)



setRenderingHint
public void setRenderingHint(Key hintKey, Object hintValue)(Code)



setRenderingHints
public void setRenderingHints(Map hints)(Code)



setStroke
public void setStroke(Stroke stroke)(Code)



setTransform
public void setTransform(AffineTransform Tx)(Code)



setXORMode
public void setXORMode(Color color)(Code)



shear
public void shear(double shearX, double shearY)(Code)



transform
public void transform(AffineTransform Tx)(Code)



translate
public void translate(int x, int y)(Code)



translate
public void translate(double tx, double ty)(Code)



Methods inherited from java.awt.Graphics2D
abstract public void addRenderingHints(Map hints)(Code)(Java Doc)
abstract public void clip(Shape s)(Code)(Java Doc)
abstract public void draw(Shape s)(Code)(Java Doc)
public void draw3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public void drawGlyphVector(GlyphVector g, float x, float y)(Code)(Java Doc)
abstract public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs)(Code)(Java Doc)
abstract public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y)(Code)(Java Doc)
abstract public void drawRenderableImage(RenderableImage img, AffineTransform xform)(Code)(Java Doc)
abstract public void drawRenderedImage(RenderedImage img, AffineTransform xform)(Code)(Java Doc)
abstract public void drawString(String str, int x, int y)(Code)(Java Doc)
abstract public void drawString(String str, float x, float y)(Code)(Java Doc)
abstract public void drawString(AttributedCharacterIterator iterator, int x, int y)(Code)(Java Doc)
abstract public void drawString(AttributedCharacterIterator iterator, float x, float y)(Code)(Java Doc)
abstract public void fill(Shape s)(Code)(Java Doc)
public void fill3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public Color getBackground()(Code)(Java Doc)
abstract public Composite getComposite()(Code)(Java Doc)
abstract public GraphicsConfiguration getDeviceConfiguration()(Code)(Java Doc)
abstract public FontRenderContext getFontRenderContext()(Code)(Java Doc)
abstract public Paint getPaint()(Code)(Java Doc)
abstract public Object getRenderingHint(Key hintKey)(Code)(Java Doc)
abstract public RenderingHints getRenderingHints()(Code)(Java Doc)
abstract public Stroke getStroke()(Code)(Java Doc)
abstract public AffineTransform getTransform()(Code)(Java Doc)
abstract public boolean hit(Rectangle rect, Shape s, boolean onStroke)(Code)(Java Doc)
abstract public void rotate(double theta)(Code)(Java Doc)
abstract public void rotate(double theta, double x, double y)(Code)(Java Doc)
abstract public void scale(double sx, double sy)(Code)(Java Doc)
abstract public void setBackground(Color color)(Code)(Java Doc)
abstract public void setComposite(Composite comp)(Code)(Java Doc)
abstract public void setPaint(Paint paint)(Code)(Java Doc)
abstract public void setRenderingHint(Key hintKey, Object hintValue)(Code)(Java Doc)
abstract public void setRenderingHints(Map hints)(Code)(Java Doc)
abstract public void setStroke(Stroke s)(Code)(Java Doc)
abstract public void setTransform(AffineTransform Tx)(Code)(Java Doc)
abstract public void shear(double shx, double shy)(Code)(Java Doc)
abstract public void transform(AffineTransform Tx)(Code)(Java Doc)
abstract public void translate(int x, int y)(Code)(Java Doc)
abstract public void translate(double tx, double ty)(Code)(Java Doc)

Methods inherited from java.awt.Graphics
abstract public void clearRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void clipRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void copyArea(int x, int y, int width, int height, int dx, int dy)(Code)(Java Doc)
abstract public Graphics create()(Code)(Java Doc)
public Graphics create(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void dispose()(Code)(Java Doc)
public void draw3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code)(Java Doc)
public void drawBytes(byte data, int offset, int length, int x, int y)(Code)(Java Doc)
public void drawChars(char data, int offset, int length, int x, int y)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)(Code)(Java Doc)
abstract public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)(Code)(Java Doc)
abstract public void drawLine(int x1, int y1, int x2, int y2)(Code)(Java Doc)
abstract public void drawOval(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void drawPolygon(int xPoints, int yPoints, int nPoints)(Code)(Java Doc)
public void drawPolygon(Polygon p)(Code)(Java Doc)
abstract public void drawPolyline(int xPoints, int yPoints, int nPoints)(Code)(Java Doc)
public void drawRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)(Java Doc)
abstract public void drawString(String str, int x, int y)(Code)(Java Doc)
abstract public void drawString(AttributedCharacterIterator iterator, int x, int y)(Code)(Java Doc)
public void fill3DRect(int x, int y, int width, int height, boolean raised)(Code)(Java Doc)
abstract public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)(Code)(Java Doc)
abstract public void fillOval(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void fillPolygon(int xPoints, int yPoints, int nPoints)(Code)(Java Doc)
public void fillPolygon(Polygon p)(Code)(Java Doc)
abstract public void fillRect(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)(Code)(Java Doc)
public void finalize()(Code)(Java Doc)
abstract public Shape getClip()(Code)(Java Doc)
abstract public Rectangle getClipBounds()(Code)(Java Doc)
public Rectangle getClipBounds(Rectangle r)(Code)(Java Doc)
public Rectangle getClipRect()(Code)(Java Doc)
abstract public Color getColor()(Code)(Java Doc)
abstract public Font getFont()(Code)(Java Doc)
public FontMetrics getFontMetrics()(Code)(Java Doc)
abstract public FontMetrics getFontMetrics(Font f)(Code)(Java Doc)
public boolean hitClip(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void setClip(int x, int y, int width, int height)(Code)(Java Doc)
abstract public void setClip(Shape clip)(Code)(Java Doc)
abstract public void setColor(Color c)(Code)(Java Doc)
abstract public void setFont(Font font)(Code)(Java Doc)
abstract public void setPaintMode()(Code)(Java Doc)
abstract public void setXORMode(Color c1)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
abstract public void translate(int x, int y)(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.