1 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 hintKey, Object hintValue); 37 public abstract Object getRenderingHint(Object 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 |