1 /* Copyright (C) 2000 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
11 import java
.awt
.geom
.AffineTransform
;
12 import java
.awt
.image
.ImageObserver
;
14 //import java.util.Map;
17 * @author Rolf W. Rasmussen <rolfwr@ii.uib.no>
19 public abstract class Graphics2D
extends Graphics
22 protected Graphics2D()
26 public void draw3DRect(int x
, int y
, int width
, int height
,
29 super.draw3DRect(x
, y
, width
, height
, raised
);
32 public void fill3DRect(int x
, int y
, int width
, int height
,
35 super.fill3DRect(x
, y
, width
, height
, raised
);
38 public abstract void draw(Shape shape
);
40 public abstract boolean drawImage(Image image
, AffineTransform xform
,
44 public abstract void drawImage(BufferedImage image,
51 public abstract void drawRenderedImage(RenderedImage image,
52 AffineTransform xform);
56 public abstract void drawRenderableImage(RenderableImage image,
57 AffineTransform xform);
60 public abstract void drawString(String text
, int x
, int y
);
62 public abstract void drawString(String text
, float x
, float y
);
65 public abstract void drawString(AttributedCharacterIterator iterator,
70 public abstract void drawString(AttributedCharacterIterator iterator,
75 public abstract void drawGlyphVector(GlyphVector g, float x, float y);
78 public abstract void fill(Shape shape
);
80 public abstract boolean hit(Rectangle rect
, Shape text
,
83 public abstract GraphicsConfiguration
getDeviceConfiguration();
85 //public abstract void setComposite(Composite comp);
87 public abstract void setPaint(Paint paint
);
89 //public abstract void setStroke(Stroke stroke)
91 public abstract void setRenderingHint(RenderingHints
.Key hintKey
,
94 public abstract Object
getRenderingHint(RenderingHints
.Key hintKey
);
96 //public abstract void setRenderingHints(Map hints);
98 //public abstract void addRenderingHints(Map hints);
100 public abstract RenderingHints
getRenderingHints();
102 public abstract void translate(int x
, int y
);
104 public abstract void translate(double tx
, double ty
);
106 public abstract void rotate(double theta
);
108 public abstract void rotate(double theta
, double x
, double y
);
110 public abstract void scale(double scaleX
, double scaleY
);
112 public abstract void shear(double shearX
, double shearY
);
114 public abstract void transform(AffineTransform Tx
);
116 public abstract void setTransform(AffineTransform Tx
);
118 public abstract AffineTransform
getTransform();
120 public abstract Paint
getPaint();
122 //public abstract Composite getComposite();
124 public abstract void setBackground(Color color
);
126 public abstract Color
getBackground();
128 //public abstract Stroke getStroke();
130 public abstract void clip(Shape s
);
132 //public abstract FontRenderContext getFontRenderContext()