| java.lang.Object java.awt.Graphics java.awt.Graphics2D java.awt.QtGraphics
QtGraphics | final class QtGraphics extends Graphics2D implements ConstrainableGraphics(Code) | | QtGraphics is an object that encapsulates a graphics context for drawing with Qt.
version: 1.12, 11/27/01 |
Field Summary | |
int | psd The index of the native peer for this graphics object. |
Method Summary | |
final 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 MicroWindows context. | public void | constrain(int x, int y, int w, int h) | 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. | final public void | dispose() | public void | drawArc(int x, int y, int w, int h, int startAngle, int endAngle) Draws an arc bounded by the given rectangle from startAngle to
endAngle. | 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, 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, 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, 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 bg, 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(String string, int x, int y) Draws the given string. | public void | drawString(AttributedCharacterIterator iterator, int x, int y) | 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() Gets the font metrics of the current font. | public FontMetrics | getFontMetrics(Font font) Gets font metrics for the given font. | public Stroke | getStroke() | native static int | pCloneGraphPSD(int Gpsd, boolean fresh) | native static int | pCloneImagePSD(int Ipsd, boolean fresh) | native static void | pDisposePSD(int psd) | public void | setClip(int x, int y, int w, int h) Sets the clipping rectangle for this X11Graphics context. | public void | setClip(Shape clip) Sets the clip to a Shape (only Rectangle allowed). | public void | setColor(Color c) Sets the foreground color. | public void | setComposite(Composite comp) | public void | setFont(Font font) | public void | setPaintMode() Sets the paint mode to overwrite the destination with the
current color. | public void | setStroke(Stroke stroke) | public void | setXORMode(Color color) Sets the paint mode to alternate between the current color
and the given color. | public String | toString() | public void | translate(int x, int y) |
psd | int psd(Code) | | The index of the native peer for this graphics object.
|
clearRect | final 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 MicroWindows context.
|
constrain | public void constrain(int x, int y, int w, int h)(Code) | | |
copyArea | 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 horizontal distance to copy the pixels. Parameters: dy - the vertical distance to copy the pixels. |
create | public Graphics create()(Code) | | Create a new QtGraphics Object based on this one.
|
dispose | final public void dispose()(Code) | | |
drawArc | public void drawArc(int x, int y, int w, int h, int startAngle, int endAngle)(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 start angle indicate clockwise
rotations, negative angle are counter-clockwise.
|
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, 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, 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, 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 bg, 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 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
|
pCloneGraphPSD | native static int pCloneGraphPSD(int Gpsd, boolean fresh)(Code) | | |
pCloneImagePSD | native static int pCloneImagePSD(int Ipsd, boolean fresh)(Code) | | |
pDisposePSD | native static void pDisposePSD(int psd)(Code) | | |
setClip | public void setClip(int x, int y, int w, int h)(Code) | | Sets the clipping rectangle for this X11Graphics context.
|
setClip | public void setClip(Shape clip)(Code) | | Sets the clip to a Shape (only Rectangle allowed).
|
setColor | public void setColor(Color c)(Code) | | Sets the foreground color.
|
setPaintMode | public void setPaintMode()(Code) | | Sets the paint mode to overwrite the destination with the
current color. This is the default paint mode.
|
setXORMode | public void setXORMode(Color color)(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)
|
|
|