| java.lang.Object | ||||
| java.awt.Graphics | ||||
| java.awt.Graphics2D | ||||
| android.awt.AndroidGraphics2D | ||||
| Value | ||||
|---|---|---|---|---|
| int | HEIGHT | 240 | 0x000000f0 | |
| double | RAD_360 | 6.283185307179586 | ||
| int | WIDTH | 320 | 0x00000140 | |
| protected | MultiRectArea | clip | |||
| protected | Composite | composite | |||
| protected | Surface | dstSurf | |||
| public | static | Matrix | mM | ||
| protected | AffineTransform | transform |
| void | addRenderingHints(Map hints) | ||||
| Adds preferences for the rendering algorithms. | |||||
| void | clearRect(int x, int y, int width, int height) | ||||
| Clears the specified rectangle. | |||||
| void | clip(Shape s) | ||||
| Intersects the current clipping area with the specified Shape and the result becomes a new clipping area. | |||||
| void | clipRect(int x, int y, int width, int height) | ||||
| Intersects the current clipping area with a new rectangle. | |||||
| void | copyArea(int sx, int sy, int width, int height, int dx, int dy) | ||||
| Copies the rectangle area to another area specified by a distance (dx, dy) from the original rectangle's location. | |||||
| Graphics | create() | ||||
| Creates a new copy of this Graphics. | |||||
| static | float[] | createMatrix(AffineTransform Tx) | |||
| static | Matrix | createMatrixObj(AffineTransform Tx) | |||
| void | dispose() | ||||
| Disposes of the Graphics. | |||||
| void | draw(Shape s) | ||||
| Draws the outline of the specified Shape. | |||||
| void | draw(Path s) | ||||
| void | draw3DRect(int x, int y, int width, int height, boolean raised) | ||||
| Draws the higlighted outline of a rectangle. | |||||
| void | drawArc(int x, int y, int width, int height, int sa, int ea) | ||||
| Draws the arc covering the specified rectangle and using the current color. | |||||
| void | drawBitmap(Bitmap bm, float x, float y, Paint p) | ||||
| void | drawBytes(byte[] data, int offset, int length, int x, int y) | ||||
| Draws the text represented by byte array. | |||||
| void | drawChars(char[] data, int offset, int length, int x, int y) | ||||
| Draws the text represented by character array. | |||||
| void | drawGlyphVector(GlyphVector g, float x, float y) | ||||
| Draws the specified GlyphVector object's text at the point x, y. | |||||
| boolean | drawImage(Image image, int x, int y, int width, int height, Color bgcolor, ImageObserver imageObserver) | ||||
| Scales the specified image to fit in the specified rectangle and draws it with the defined background color. | |||||
| boolean | drawImage(Image image, int x, int y, int width, int height, ImageObserver imageObserver) | ||||
| Scales the specified image to fit in the specified rectangle and draws it. | |||||
| boolean | drawImage(Image image, AffineTransform trans, ImageObserver imageObserver) | ||||
| Draws BufferedImage transformed from image space into user space according to the AffineTransform xform and notifies the ImageObserver. | |||||
| boolean | drawImage(Image image, int x, int y, Color bgcolor, ImageObserver imageObserver) | ||||
| Draws the specified image with the defined background color. | |||||
| void | drawImage(BufferedImage bufImage, BufferedImageOp op, int x, int y) | ||||
| Draws the BufferedImage -- modified according to the operation BufferedImageOp -- at the point x, y. | |||||
| boolean | drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver imageObserver) | ||||
| Scales the specified area of the specified image to fit in the rectangle area defined by its corners coordinates and draws the sub-image. | |||||
| boolean | drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver imageObserver) | ||||
| Scales the specified area of the specified image to fit in the rectangle area defined by its corners coordinates and draws the sub-image with the specified background color. | |||||
| boolean | drawImage(Image image, int x, int y, ImageObserver imageObserver) | ||||
| Draws the specified image. | |||||
| void | drawLine(int x1, int y1, int x2, int y2) | ||||
| Draws a line from the point (x1, y1) to the point (x2, y2). | |||||
| void | drawOval(int x, int y, int width, int height) | ||||
| Draws the ouline of an oval to fit in the rectangle defined by the given width, height, and top left corner. | |||||
| void | drawPolygon(int[] xpoints, int[] ypoints, int npoints) | ||||
| Draws the outline of a polygon. | |||||
| void | drawPolygon(Polygon p) | ||||
| Draws the outline of a polygon which is defined by Polygon object. | |||||
| void | drawPolyline(int[] xpoints, int[] ypoints, int npoints) | ||||
| Draws a set of connected lines which are defined by the x and y coordinate arrays. | |||||
| void | drawRect(int x, int y, int width, int height) | ||||
| Draws the rectangle with the specified width and length and top left corner coordinates. | |||||
| void | drawRenderableImage(RenderableImage img, AffineTransform xform) | ||||
| Draws a RenderableImage which is transformed from image space into user according to the AffineTransform xform. | |||||
| void | drawRenderedImage(RenderedImage img, AffineTransform xform) | ||||
| Draws a RenderedImage which is transformed from image space into user according to the AffineTransform xform. | |||||
| void | drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) | ||||
| Draws the outline of a rectangle with round corners. | |||||
| void | drawString(String s, float x, float y) | ||||
| Draws the String whose the first character position is specified by the parameters X, Y. | |||||
| void | drawString(AttributedCharacterIterator iterator, int x, int y) | ||||
| Draws the string specified by the AttributedCharacterIterator. | |||||
| void | drawString(String str, int x, int y) | ||||
| Draws the String whose the first character coordinates are specified by the parameters X, Y. | |||||
| void | drawString(AttributedCharacterIterator iterator, float x, float y) | ||||
| Draws the string specified by the AttributedCharacterIterator. | |||||
| void | fill(Shape s) | ||||
| Fills the interior of the specified Shape. | |||||
| void | fill3DRect(int x, int y, int width, int height, boolean raised) | ||||
| Fills a 3D rectangle with the current color. | |||||
| void | fillArc(int x, int y, int width, int height, int sa, int ea) | ||||
| Fills the arc covering the rectangle and using the current color. | |||||
| void | fillOval(int x, int y, int width, int height) | ||||
| Fills an oval with the current color where the oval is defined by the bounding rectangle with the given width, height, and top left corner. | |||||
| void | fillPolygon(Polygon p) | ||||
| Fills the polygon with the current color. | |||||
| void | fillPolygon(int[] xpoints, int[] ypoints, int npoints) | ||||
| Fills a polygon with the current color. | |||||
| void | fillRect(int x, int y, int width, int height) | ||||
| Fills a rectangle with the current color. | |||||
| void | fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) | ||||
| Fills a round cornered rectangle with the current color. | |||||
| static | Canvas | getAndroidCanvas() | |||
| static | Paint | getAndroidPaint() | |||
| Color | getBackground() | ||||
| Gets the background color. | |||||
| Shape | getClip() | ||||
| Gets the clipping area. | |||||
| Rectangle | getClipBounds() | ||||
| Gets the bounds of the current clipping area as a rectangle. | |||||
| Rectangle | getClipBounds(Rectangle r) | ||||
| Gets the bounds of the current clipping area as a rectangle and copies it to an existing rectangle. | |||||
| Color | getColor() | ||||
| Gets the current color of Graphics. | |||||
| Composite | getComposite() | ||||
| Gets the current composite of the Graphics2D. | |||||
| static | float | getDegree(float radian) | |||
| GraphicsConfiguration | getDeviceConfiguration() | ||||
| Gets the device configuration. | |||||
| static | float | getEllipsisX(float degree, float princAxis) | |||
| static | float | getEllipsisY(float degree, float conAxis) | |||
| Font | getFont() | ||||
| Gets the current font of Graphics. | |||||
| FontMetrics | getFontMetrics(Font font) | ||||
| Gets the font metrics of the specified font. | |||||
| FontRenderContext | getFontRenderContext() | ||||
| Gets the rendering context of the Font. | |||||
| static | AndroidGraphics2D | getInstance() | |||
| static | AndroidGraphics2D | getInstance(Canvas c, Paint p) | |||
| float[] | getInverseMatrix() | ||||
| float[] | getMatrix() | ||||
| Paint | getPaint() | ||||
| Gets the current Paint of Graphics2D. | |||||
| static | float | getRadian(float degree) | |||
| Object | getRenderingHint(Key key) | ||||
| Gets the value of single preference for specified key. | |||||
| RenderingHints | getRenderingHints() | ||||
| Gets the set of the rendering preferences as a collection of key/value pairs. | |||||
| Stroke | getStroke() | ||||
| Gets current stroke of the Graphics2D. | |||||
| AffineTransform | getTransform() | ||||
| Gets current affine transform of the Graphics2D. | |||||
| boolean | hit(Rectangle rect, Shape s, boolean onStroke) | ||||
| Determines wether or not the specified Shape intersects the specified Rectangle. | |||||
| boolean | hitClip(int x, int y, int width, int height) | ||||
| Determines whether or not the specified rectangle intersects the current clipping area. | |||||
| void | rotate(double theta) | ||||
| Performs a rotation transform relative to current Graphics2D Transform. | |||||
| void | rotate(double theta, double x, double y) | ||||
| Performs a translated rotation transform relative to current Graphics2D Transform. | |||||
| void | scale(double sx, double sy) | ||||
| Performs a linear scale transform relative to current Graphics2D Transform. | |||||
| void | setBackground(Color color) | ||||
| Sets a new background color for clearing rectangular areas. | |||||
| void | setCanvas(Canvas c) | ||||
| void | setClip(int x, int y, int width, int height) | ||||
| Sets the new clipping area specified by rectangle. | |||||
| void | setClip(Shape clip) | ||||
| Sets the new clipping area to be the area specified by Shape object. | |||||
| void | setColor(Color c) | ||||
| Sets the current Graphics color. | |||||
| void | setComposite(Composite comp) | ||||
| Sets the current composite for Graphics2D. | |||||
| void | setFont(Font font) | ||||
| Font mapping: Family: Android AWT ------------------------------------- serif Serif / TimesRoman sans-serif SansSerif / Helvetica monospace Monospaced / Courier Style: Android AWT ------------------------------------- normal Plain bold bold italic italic | |||||
| void | setPaint(Paint paint) | ||||
| Sets the paint for Graphics2D. | |||||
| void | setPaintMode() | ||||
| Sets the paint mode for the Graphics which overwrites all rendering operations with the current color. | |||||
| void | setRenderingHint(Key hintKey, Object hintValue) | ||||
| Sets a key-value pair in the current RenderingHints map. | |||||
| void | setRenderingHints(Map hints) | ||||
| Replaces the current rendering hints with the specified rendering preferences. | |||||
| void | setSpaint(Paint paint) | ||||
| void | setStroke(Stroke s) | ||||
| Sets the stroke for the Graphics2D. | |||||
| void | setTransform(AffineTransform Tx) | ||||
| Overwrite the current Transform of the Graphics2D. | |||||
| void | setXORMode(Color color) | ||||
| Sets the XOR mode for the Graphics which changes a pixel from the current color to the specified XOR color. | |||||
| void | shear(double shx, double shy) | ||||
| Performs a shear transform relative to current Graphics2D Transform. | |||||
| void | transform(AffineTransform Tx) | ||||
| Concatenates the AffineTransform object with current Transform of this Graphics2D. | |||||
| void | translate(int x, int y) | ||||
| Moves the origin Graphics2D Transform to the point with x, y coordinates in current coordinate system. | |||||
| void | translate(double tx, double ty) | ||||
| Performs a translate transform relative to current Graphics2D Transform. | |||||
Methods inherited
from class
java.awt.Graphics2D
Methods inherited
from class
java.awt.Graphics