Fieds_labo3
lib-Graphics
最終更新:
fieds_labo3
-
view
クラスライブラリ Graphics
java.awt.Graphics
1.主なメソッド
- void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) :円弧
- Boolean drawImage(Image img, int x, int y, 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 drawRect(int x, int y, int width, int height) :四角形
- void drawString(String str, int x, int y) :文字列
- 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 setColor(Color c) :色指定
- void setFont(Font font) :フォント指定
2.色設定
- Color.white
- Color.lightGray
- Color.gray
- Color.darkGray
- Color.black
- Color.red
- Color.pink
- Color.orange
- Color.yellow
- Color.green
- Color.magenta
- Color.cyan
- Color.blue
3.フォント
- Dialog
- DialogInput
- Monospaced
- Serif
- SansSerif
- Symbol
4.フォントスタイル
- Font.PLAIN
- Font.BOLD
- Font.ITALIC