Java Doc for QtGraphics.java in  » 6.0-JDK-Modules » j2me » sun » awt » qt » 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 » 6.0 JDK Modules » j2me » sun.awt.qt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.Graphics
      java.awt.Graphics2D
         sun.awt.qt.QtGraphics

QtGraphics
class QtGraphics extends Graphics2D implements ConstrainableGraphics,Cloneable(Code)
QtGraphics is an object that encapsulates a graphics context for a particular drawing area using the Qt library.


Field Summary
 intdata
    
 Fontfont
    
 Colorforeground
    
 sun.awt.image.Imageimage
    
 intoriginX
    
 intoriginY
    
 QtComponentPeerpeer
     The peer that created this graphics.

Constructor Summary
public  QtGraphics(QtImage image)
    

Method Summary
native public  voidclearRect(int x, int y, int w, int h)
     Clears the rectangle indicated by x,y,w,h.
public  voidclipRect(int x, int y, int w, int h)
     Crops the clipping rectangle for this QtGraphics context.
protected  Objectclone()
    
public  voidconstrain(int x, int y, int w, int h)
    
native public  voidcopyArea(int X, int Y, int W, int H, int dx, int dy)
     Copies an area of the canvas that this graphics context paints to.
public  Graphicscreate()
     Create a new QtGraphics Object based on this one.
static  QtGraphicscreateFromComponent(QtComponentPeer peer)
    
final public  voiddispose()
    
native protected  voiddisposeImpl()
    
public  voiddrawArc(int x, int y, int w, int h, int startAngle, int arcAngle)
     Draws an arc bounded by the given rectangle from startAngle to endAngle.
public  voiddrawBytes(byte data, int offset, int length, int x, int y)
     Draws the given byte array.
public  voiddrawChars(char chars, int offset, int length, int x, int y)
     Draws the given character array.
public  booleandrawImage(Image img, int x, int y, ImageObserver observer)
     Draws an image at x,y in nonblocking mode with a callback object.
public  booleandrawImage(Image img, int x, int y, int width, int height, ImageObserver observer)
     Draws an image scaled to x,y,w,h in nonblocking mode with a callback object.
public  booleandrawImage(Image img, int x, int y, Color bg, ImageObserver observer)
     Draws an image at x,y in nonblocking mode with a solid background color and a callback object.
public  booleandrawImage(Image img, int x, int y, int width, int height, Color bg, ImageObserver observer)
     Draws an image scaled to x,y,w,h in nonblocking mode with a solid background color and a callback object.
public  booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
     Draws a subrectangle of an image scaled to a destination rectangle in nonblocking mode with a callback object.
public  booleandrawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
     Draws a subrectangle of an image scaled to a destination rectangle in nonblocking mode with a solid background color and a callback object.
public  voiddrawLine(int x1, int y1, int x2, int y2)
     Draws the given line.
public  voiddrawOval(int x, int y, int w, int h)
    
public  voiddrawPolygon(int xPoints, int yPoints, int nPoints)
    
public  voiddrawPolyline(int xPoints, int yPoints, int nPoints)
    
public  voiddrawRect(int X, int Y, int W, int H)
     Draws the given rectangle.
public  voiddrawRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight)
     Draws a rounded rectangle.
public  voiddrawString(AttributedCharacterIterator text, int x, int y)
    
public  voiddrawString(String string, int x, int y)
     Draws the given string.
public  voidfillArc(int x, int y, int w, int h, int startAngle, int endAngle)
     fills an arc.
public  voidfillOval(int x, int y, int w, int h)
    
public  voidfillPolygon(int xPoints, int yPoints, int nPoints)
    
public  voidfillRect(int X, int Y, int W, int H)
     Fills the given rectangle with the foreground color.
public  voidfillRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight)
     Draws a filled rounded rectangle.
public  voidfinalize()
    
public  ShapegetClip()
     Returns a Shape object representing the MicroWindows clip.
public  RectanglegetClipBounds()
    
public  ColorgetColor()
    
public  CompositegetComposite()
    
public  GraphicsConfigurationgetDeviceConfiguration()
    
public  FontgetFont()
    
public  FontMetricsgetFontMetrics(Font font)
     Gets font metrics for the given font.
public  StrokegetStroke()
    
public  voidsetClip(int x, int y, int w, int h)
     Sets the clipping rectangle for this QtGraphics context.
public  voidsetClip(Shape clip)
     Sets the QtGraphics clip to a Shape (only Rectangle allowed).
public  voidsetColor(Color c)
     Sets the graphics color.
public  voidsetComposite(Composite comp)
    
public  voidsetFont(Font font)
    
native public  voidsetPaintMode()
     Sets the paint mode to overwrite the destination with the current color.
public  voidsetStroke(Stroke s)
    
native public  voidsetXORMode(Color c1)
     Sets the paint mode to alternate between the current color and the given color.
public  StringtoString()
    
public  voidtranslate(int x, int y)
    

Field Detail
data
int data(Code)



font
Font font(Code)



foreground
Color foreground(Code)



image
sun.awt.image.Image image(Code)



originX
int originX(Code)



originY
int originY(Code)



peer
QtComponentPeer peer(Code)
The peer that created this graphics. This is needed by clearRect which needs to clear the background with the background color of the heavyweight component that created it.




Constructor Detail
QtGraphics
public QtGraphics(QtImage image)(Code)




Method Detail
clearRect
native public void clearRect(int x, int y, int w, int h)(Code)
Clears the rectangle indicated by x,y,w,h.



clipRect
public void clipRect(int x, int y, int w, int h)(Code)
Crops the clipping rectangle for this QtGraphics context.



clone
protected Object clone()(Code)



constrain
public void constrain(int x, int y, int w, int h)(Code)



copyArea
native public void copyArea(int X, int Y, int W, int H, int dx, int dy)(Code)
Copies an area of the canvas that this graphics context paints to.
Parameters:
  X - the x-coordinate of the source.
Parameters:
  Y - the y-coordinate of the source.
Parameters:
  W - the width.
Parameters:
  H - the height.
Parameters:
  dx - the x-coordinate of the destination.
Parameters:
  dy - the y-coordinate of the destination.



create
public Graphics create()(Code)
Create a new QtGraphics Object based on this one.



createFromComponent
static QtGraphics createFromComponent(QtComponentPeer peer)(Code)



dispose
final public void dispose()(Code)



disposeImpl
native protected void disposeImpl()(Code)



drawArc
public void drawArc(int x, int y, int w, int h, int startAngle, int arcAngle)(Code)
Draws an arc bounded by the given rectangle from startAngle to endAngle. 0 degrees is a vertical line straight up from the center of the rectangle. Positive angles indicate clockwise rotations, negative angle are counter-clockwise.



drawBytes
public void drawBytes(byte data, int offset, int length, int x, int y)(Code)
Draws the given byte array.



drawChars
public void drawChars(char chars, int offset, int length, int x, int y)(Code)
Draws the given character array.



drawImage
public boolean drawImage(Image img, int x, int y, ImageObserver observer)(Code)
Draws an image at x,y in nonblocking mode with a callback object.



drawImage
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer)(Code)
Draws an image scaled to x,y,w,h in nonblocking mode with a callback object.



drawImage
public boolean drawImage(Image img, int x, int y, Color bg, ImageObserver observer)(Code)
Draws an image at x,y in nonblocking mode with a solid background color and a callback object.



drawImage
public boolean drawImage(Image img, int x, int y, int width, int height, Color bg, ImageObserver observer)(Code)
Draws an image scaled to x,y,w,h in nonblocking mode with a solid background color and a callback object.



drawImage
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)(Code)
Draws a subrectangle of an image scaled to a destination rectangle in nonblocking mode with a callback object.



drawImage
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)
Draws a subrectangle of an image scaled to a destination rectangle in nonblocking mode with a solid background color and a callback object.



drawLine
public void drawLine(int x1, int y1, int x2, int y2)(Code)
Draws the given line.



drawOval
public void drawOval(int x, int y, int w, int h)(Code)
Draws an oval to fit in the given rectangle



drawPolygon
public void drawPolygon(int xPoints, int yPoints, int nPoints)(Code)
Draws a polygon defined by an array of x points and y points



drawPolyline
public void drawPolyline(int xPoints, int yPoints, int nPoints)(Code)
Draws a bunch of lines defined by an array of x points and y points



drawRect
public void drawRect(int X, int Y, int W, int H)(Code)
Draws the given rectangle.



drawRoundRect
public void drawRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight)(Code)
Draws a rounded rectangle.



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



drawString
public void drawString(String string, int x, int y)(Code)
Draws the given string.



fillArc
public void fillArc(int x, int y, int w, int h, int startAngle, int endAngle)(Code)
fills an arc. arguments are the same as drawArc.



fillOval
public void fillOval(int x, int y, int w, int h)(Code)
Fills an oval to fit in the given rectangle



fillPolygon
public void fillPolygon(int xPoints, int yPoints, int nPoints)(Code)
Fills a polygon with the current fill mask



fillRect
public void fillRect(int X, int Y, int W, int H)(Code)
Fills the given rectangle with the foreground color.



fillRoundRect
public void fillRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight)(Code)
Draws a filled rounded rectangle.



finalize
public void finalize()(Code)



getClip
public Shape getClip()(Code)
Returns a Shape object representing the MicroWindows clip.



getClipBounds
public Rectangle getClipBounds()(Code)
Gets the current clipping area



getColor
public Color getColor()(Code)



getComposite
public Composite getComposite()(Code)



getDeviceConfiguration
public GraphicsConfiguration getDeviceConfiguration()(Code)



getFont
public Font getFont()(Code)



getFontMetrics
public FontMetrics getFontMetrics(Font font)(Code)
Gets font metrics for the given font.



getStroke
public Stroke getStroke()(Code)



setClip
public void setClip(int x, int y, int w, int h)(Code)
Sets the clipping rectangle for this QtGraphics context.



setClip
public void setClip(Shape clip)(Code)
Sets the QtGraphics clip to a Shape (only Rectangle allowed).



setColor
public void setColor(Color c)(Code)
Sets the graphics color.



setComposite
public void setComposite(Composite comp)(Code)



setFont
public void setFont(Font font)(Code)



setPaintMode
native public void setPaintMode()(Code)
Sets the paint mode to overwrite the destination with the current color. This is the default paint mode.



setStroke
public void setStroke(Stroke s)(Code)



setXORMode
native public void setXORMode(Color c1)(Code)
Sets the paint mode to alternate between the current color and the given color.



toString
public String toString()(Code)



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



Methods inherited from java.awt.Graphics2D
abstract public Composite getComposite()(Code)(Java Doc)
abstract public GraphicsConfiguration getDeviceConfiguration()(Code)(Java Doc)
abstract public Stroke getStroke()(Code)(Java Doc)
abstract public void setComposite(Composite comp)(Code)(Java Doc)
abstract public void setStroke(Stroke s)(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(AttributedCharacterIterator iterator, int x, int y)(Code)(Java Doc)
abstract public void drawString(String str, 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
public boolean equals(Object obj)(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.