| java.lang.Object java.awt.Graphics java.awt.Graphics2D sun.awt.qt.QtGraphics
Method Summary | |
native public void | clearRect(int x, int y, int w, int h) Clears the rectangle indicated by x,y,w,h. | public void | clipRect(int x, int y, int w, int h) Crops the clipping rectangle for this QtGraphics context. | protected Object | clone() | public void | constrain(int x, int y, int w, int h) | native public void | copyArea(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 Graphics | create() Create a new QtGraphics Object based on this one. | static QtGraphics | createFromComponent(QtComponentPeer peer) | final public void | dispose() | native protected void | disposeImpl() | public void | drawArc(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 void | drawBytes(byte data, int offset, int length, int x, int y) Draws the given byte array. | public void | drawChars(char chars, int offset, int length, int x, int y) Draws the given character array. | public boolean | drawImage(Image img, int x, int y, ImageObserver observer) Draws an image at x,y in nonblocking mode with a callback object. | public boolean | drawImage(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 boolean | drawImage(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 boolean | drawImage(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 boolean | drawImage(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 boolean | drawImage(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 void | drawLine(int x1, int y1, int x2, int y2) Draws the given line. | public void | drawOval(int x, int y, int w, int h) | public void | drawPolygon(int xPoints, int yPoints, int nPoints) | public void | drawPolyline(int xPoints, int yPoints, int nPoints) | public void | drawRect(int X, int Y, int W, int H) Draws the given rectangle. | public void | drawRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight) Draws a rounded rectangle. | public void | drawString(AttributedCharacterIterator text, int x, int y) | public void | drawString(String string, int x, int y) Draws the given string. | public void | fillArc(int x, int y, int w, int h, int startAngle, int endAngle) fills an arc. | public void | fillOval(int x, int y, int w, int h) | public void | fillPolygon(int xPoints, int yPoints, int nPoints) | public void | fillRect(int X, int Y, int W, int H) Fills the given rectangle with the foreground color. | public void | fillRoundRect(int x, int y, int w, int h, int arcWidth, int arcHeight) Draws a filled rounded rectangle. | public void | finalize() | public Shape | getClip() Returns a Shape object representing the MicroWindows clip. | public Rectangle | getClipBounds() | public Color | getColor() | public Composite | getComposite() | public GraphicsConfiguration | getDeviceConfiguration() | public Font | getFont() | public FontMetrics | getFontMetrics(Font font) Gets font metrics for the given font. | public Stroke | getStroke() | public void | setClip(int x, int y, int w, int h) Sets the clipping rectangle for this QtGraphics context. | public void | setClip(Shape clip) Sets the QtGraphics clip to a Shape (only Rectangle allowed). | public void | setColor(Color c) Sets the graphics color. | public void | setComposite(Composite comp) | public void | setFont(Font font) | native public void | setPaintMode() Sets the paint mode to overwrite the destination with the
current color. | public void | setStroke(Stroke s) | native public void | setXORMode(Color c1) Sets the paint mode to alternate between the current color
and the given color. | public String | toString() | public void | translate(int x, int y) |
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.
|
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.
|
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.
|
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(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
|
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.
|
setPaintMode | native public void setPaintMode()(Code) | | Sets the paint mode to overwrite the destination with the
current color. This is the default paint mode.
|
setXORMode | native public void setXORMode(Color c1)(Code) | | Sets the paint mode to alternate between the current color
and the given color.
|
translate | public void translate(int x, int y)(Code) | | Translate
|
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)
|
|
|