KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > Graphics2D


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: Graphics2D.java,v $
11    Revision 1.1 2004/01/15 15:20:29 bobintetley
12    Java2D work
13
14
15 */

16
17 package swingwt.awt;
18
19 import swingwt.awt.geom.*;
20 import swingwt.awt.font.*;
21
22 import java.util.*;
23
24 public abstract class Graphics2D extends Graphics {
25
26     public abstract void draw(Shape s);
27     public abstract void drawGlyphVector(GlyphVector g, float x, float y);
28     public abstract void fill(Shape s);
29     public abstract boolean hit(Rectangle rect,
30                 Shape s,
31                 boolean onStroke);
32     public abstract GraphicsConfiguration getDeviceConfiguration();
33     public abstract void setComposite(Composite comp);
34     public abstract void setPaint( Paint paint );
35     public abstract void setStroke(Stroke s);
36     public abstract void setRenderingHint(Object JavaDoc hintKey, Object JavaDoc hintValue);
37     public abstract Object JavaDoc getRenderingHint(Object JavaDoc hintKey);
38     public abstract void setRenderingHints(Map hints);
39     public abstract void addRenderingHints(Map hints);
40     public abstract RenderingHints getRenderingHints();
41     public abstract void translate(int x, int y);
42     public abstract void translate(double tx, double ty);
43     public abstract void rotate(double theta);
44     public abstract void rotate(double theta, double x, double y);
45     public abstract void scale(double sx, double sy);
46     public abstract void shear(double shx, double shy);
47     public abstract void transform(AffineTransform Tx);
48     public abstract void setTransform(AffineTransform Tx);
49     public abstract AffineTransform getTransform();
50     public abstract Paint getPaint();
51     public abstract Composite getComposite();
52     public abstract void setBackground(Color color);
53     public abstract Color getBackground();
54     public abstract Stroke getStroke();
55     public abstract void clip(Shape s);
56     public abstract FontRenderContext getFontRenderContext();
57     
58 }
59
Popular Tags