La classe Graphics

Objet par l'intermédiaire duquel sont programmés les affichages graphiques au sein des fonctions void paint(Graphics g) surchargées dans les classes Java ayant à gérer un affichage.
| Constructeur | 
| protected Graphics() | 
| Valeur rendue | Nom et paramètres | 
| void | clearRect(int x,int y,int width,int height) | 
| void | clipRect(int x,int y,int width,int height) | 
| void | copyArea(int x,int y,int width,int height,int dx,int dy) | 
| Graphics | create() | 
| Graphics | create(int x,int y,int width,int height) | 
| void | dispose() | 
| void | draw3DRect(int x,int y,int width,int height,boolean raised) | 
| void | drawArc(int x,int y,int width,int height,int startAngle,int arcAngle) | 
| void | drawBytes(byte[] data,int offset,int length,int x,int y) | 
| void | drawChars(char[] data,int offset,int length,int x,int y) | 
| boolean | drawImage(Image img,int x,int y,Color bgcolor,ImageObserver observer) | 
| boolean | drawImage(Image img,int x,int y,ImageObserver observer) | 
| boolean | drawImage(Image img,int x,int y,int width,int height,Color bgcolor,ImageObserver observer) | 
| boolean | drawImage(Image img,int x,int y,int width,int height,ImageObserver observer) | 
| boolean | drawImage(Image img,int dx1,int dy1,int dx2,int dy2,int sx1,int sy1,int sx2,int sy2,Color bgcolor,ImageObserver observer) | 
| boolean | drawImage(Image img,int dx1,int dy1,int dx2,int dy2,int sx1,int sy1,int sx2,int sy2,ImageObserver observer) | 
| void | drawLine(int x1,int y1,int x2,int y2) | 
| void | drawOval(int x,int y,int width,int height) | 
| void | drawPolygon(int[] xPoints,int[] yPoints,int nPoints) | 
| void | drawPolygon(Polygon p) | 
| void | drawPolyline(int[] xPoints,int[] yPoints,int nPoints) | 
| void | drawRect(int x,int y,int width,int height) | 
| void | drawRoundRect(int x,int y,int width,int height,int arcWidth,int arcHeight) | 
| void | drawString(AttributedCharacterIterator iterator,int x,int y) | 
| void | drawString(String str,int x,int y) | 
| void | fill3DRect(int x,int y,int width,int height,boolean raised) | 
| void | fillArc(int x,int y,int width,int height,int startAngle,int arcAngle) | 
| void | fillOval(int x,int y,int width,int height) | 
| void | fillPolygon(int[] xPoints,int[] yPoints,int nPoints) | 
| void | fillPolygon(Polygon p) | 
| void | fillRect(int x,int y,int width,int height) | 
| void | fillRoundRect(int x,int y,int width,int height,int arcWidth,int arcHeight) | 
| void | finalize() | 
| Shape | getClip() | 
| Rectangle | getClipBounds() | 
| Rectangle | getClipBounds(Rectangle r) | 
| Rectangle | getClipRect() | 
| Color | getColor() | 
| Font | getFont() | 
| FontMetrics | getFontMetrics() | 
| FontMetrics | getFontMetrics(Font f) | 
| boolean | hitClip(int x,int y,int width,int height) | 
| void | setClip(int x,int y,int width,int height) | 
| void | setClip(Shape clip) | 
| void | setColor(Color c) | 
| void | setFont(Font font) | 
| void | setPaintMode() | 
| void | setXORMode(Color c1) | 
| void | translate(int x,int y) |