1:
8:
9: package ;
10:
11: import ;
12: import ;
13: import ;
14: import ;
15: import ;
16: import ;
17: import ;
18: import ;
19: import ;
20: import ;
21: import ;
22:
23:
28: public interface DirectRasterGraphics extends Cloneable
29: {
30: void dispose();
31:
32: void setColor(Color color);
33:
34: void setPaintMode();
35:
36: void setXORMode(Color altColor);
37:
38: void setFont(Font font);
39:
40: FontMetrics getFontMetrics(Font font);
41:
42:
43: void setClip(Shape clip);
44:
45: void copyArea(int x, int y, int width, int height,
46: int dx, int dy);
47:
48: void drawLine(int x1, int y1, int x2, int y2);
49:
50: void drawRect(int x, int y, int width, int height);
51:
52: void fillRect(int x, int y, int width, int height);
53:
54: void drawArc(int x, int y, int width, int height,
55: int startAngle, int arcAngle);
56:
57: void fillArc(int x, int y, int width, int height,
58: int startAngle, int arcAngle);
59:
60: void drawPolyline(int[] xPoints, int[] yPoints, int nPoints);
61:
62: void drawPolygon(int[] xPoints, int[] yPoints, int nPoints);
63:
64: void fillPolygon(int[] xPoints, int[] yPoints, int nPoints,
65: int translateX, int translateY);
66:
67: void drawString(String str, int x, int y);
68:
69: boolean drawImage(Image image, int x, int y,
70: ImageObserver observer);
71:
72:
77: MappedRaster mapRaster(Rectangle bounds);
78:
79:
82: void unmapRaster(MappedRaster mappedRaster);
83:
84: Object clone();
85: }