1 
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
3 
4 #ifndef __gnu_java_awt_java2d_AbstractGraphics2D__
5 #define __gnu_java_awt_java2d_AbstractGraphics2D__
6 
7 #pragma interface
8 
9 #include <java/awt/Graphics2D.h>
10 #include <gcj/array.h>
11 
12 extern "Java"
13 {
14   namespace gnu
15   {
16     namespace java
17     {
18       namespace awt
19       {
20         namespace java2d
21         {
22             class AbstractGraphics2D;
23             class ScanlineConverter;
24             class ScanlineCoverage;
25             class ShapeCache;
26             class TextCacheKey;
27         }
28       }
29     }
30   }
31   namespace java
32   {
33     namespace awt
34     {
35         class BasicStroke;
36         class Color;
37         class Composite;
38         class Font;
39         class FontMetrics;
40         class Graphics;
41         class Image;
42         class Paint;
43         class PaintContext;
44         class Rectangle;
45         class RenderingHints;
46         class RenderingHints$Key;
47         class Shape;
48         class Stroke;
49       namespace font
50       {
51           class FontRenderContext;
52           class GlyphVector;
53       }
54       namespace geom
55       {
56           class AffineTransform;
57       }
58       namespace image
59       {
60           class BufferedImage;
61           class BufferedImageOp;
62           class ColorModel;
63           class ImageObserver;
64           class Raster;
65           class RenderedImage;
66           class WritableRaster;
67         namespace renderable
68         {
69             class RenderableImage;
70         }
71       }
72     }
73     namespace text
74     {
75         class AttributedCharacterIterator;
76     }
77   }
78 }
79 
80 class gnu::java::awt::java2d::AbstractGraphics2D : public ::java::awt::Graphics2D
81 {
82 
83 public: // actually protected
84   AbstractGraphics2D();
85 public:
86   virtual void draw(::java::awt::Shape *);
87   virtual jboolean drawImage(::java::awt::Image *, ::java::awt::geom::AffineTransform *, ::java::awt::image::ImageObserver *);
88 private:
89   jboolean drawImageImpl(::java::awt::Image *, ::java::awt::geom::AffineTransform *, ::java::awt::image::ImageObserver *, ::java::awt::Rectangle *);
90 public:
91   virtual void drawImage(::java::awt::image::BufferedImage *, ::java::awt::image::BufferedImageOp *, jint, jint);
92   virtual void drawRenderedImage(::java::awt::image::RenderedImage *, ::java::awt::geom::AffineTransform *);
93 private:
94   void drawRenderedImageImpl(::java::awt::image::RenderedImage *, ::java::awt::geom::AffineTransform *, ::java::awt::Rectangle *);
95 public:
96   virtual void drawRenderableImage(::java::awt::image::renderable::RenderableImage *, ::java::awt::geom::AffineTransform *);
97 private:
98   void drawRenderableImageImpl(::java::awt::image::renderable::RenderableImage *, ::java::awt::geom::AffineTransform *, ::java::awt::Rectangle *);
99 public:
100   virtual void drawString(::java::lang::String *, jint, jint);
101   virtual void drawString(::java::lang::String *, jfloat, jfloat);
102   virtual void drawString(::java::text::AttributedCharacterIterator *, jint, jint);
103   virtual void drawString(::java::text::AttributedCharacterIterator *, jfloat, jfloat);
104   virtual void fill(::java::awt::Shape *);
105   virtual jboolean hit(::java::awt::Rectangle *, ::java::awt::Shape *, jboolean);
106   virtual void setComposite(::java::awt::Composite *);
107   virtual void setPaint(::java::awt::Paint *);
108   virtual void setStroke(::java::awt::Stroke *);
109   virtual void setRenderingHint(::java::awt::RenderingHints$Key *, ::java::lang::Object *);
110   virtual ::java::lang::Object * getRenderingHint(::java::awt::RenderingHints$Key *);
111   virtual void setRenderingHints(::java::util::Map *);
112   virtual void addRenderingHints(::java::util::Map *);
113   virtual ::java::awt::RenderingHints * getRenderingHints();
114   virtual void translate(jint, jint);
115   virtual void translate(jdouble, jdouble);
116   virtual void rotate(jdouble);
117   virtual void rotate(jdouble, jdouble, jdouble);
118   virtual void scale(jdouble, jdouble);
119   virtual void shear(jdouble, jdouble);
120   virtual void transform(::java::awt::geom::AffineTransform *);
121   virtual void setTransform(::java::awt::geom::AffineTransform *);
122   virtual ::java::awt::geom::AffineTransform * getTransform();
123   virtual ::java::awt::Paint * getPaint();
124   virtual ::java::awt::Composite * getComposite();
125   virtual void setBackground(::java::awt::Color *);
126   virtual ::java::awt::Color * getBackground();
127   virtual ::java::awt::Stroke * getStroke();
128   virtual void clip(::java::awt::Shape *);
129   virtual ::java::awt::font::FontRenderContext * getFontRenderContext();
130   virtual void drawGlyphVector(::java::awt::font::GlyphVector *, jfloat, jfloat);
131   virtual ::java::awt::Graphics * create();
132 public: // actually protected
133   virtual ::java::lang::Object * clone();
134 public:
135   virtual ::java::awt::Color * getColor();
136   virtual void setColor(::java::awt::Color *);
137   virtual void setPaintMode();
138   virtual void setXORMode(::java::awt::Color *);
139   virtual ::java::awt::Font * getFont();
140   virtual void setFont(::java::awt::Font *);
141   virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
142   virtual ::java::awt::Rectangle * getClipBounds();
143   virtual void clipRect(jint, jint, jint, jint);
144   virtual void setClip(jint, jint, jint, jint);
145   virtual ::java::awt::Shape * getClip();
146   virtual void setClip(::java::awt::Shape *);
147   virtual void copyArea(jint, jint, jint, jint, jint, jint);
148   virtual void drawLine(jint, jint, jint, jint);
149   virtual void drawRect(jint, jint, jint, jint);
150   virtual void fillRect(jint, jint, jint, jint);
151   virtual void clearRect(jint, jint, jint, jint);
152   virtual void drawRoundRect(jint, jint, jint, jint, jint, jint);
153   virtual void fillRoundRect(jint, jint, jint, jint, jint, jint);
154   virtual void drawOval(jint, jint, jint, jint);
155   virtual void fillOval(jint, jint, jint, jint);
156   virtual void drawArc(jint, jint, jint, jint, jint, jint);
157   virtual void fillArc(jint, jint, jint, jint, jint, jint);
158   virtual void drawPolyline(JArray< jint > *, JArray< jint > *, jint);
159   virtual void drawPolygon(JArray< jint > *, JArray< jint > *, jint);
160   virtual void fillPolygon(JArray< jint > *, JArray< jint > *, jint);
161   virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
162   virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
163   virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
164   virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
165   virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
166   virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
167   virtual void dispose();
168 public: // actually protected
169   virtual void fillShape(::java::awt::Shape *, jboolean);
170   virtual ::java::awt::image::ColorModel * getColorModel() = 0;
171   virtual ::java::awt::Rectangle * getDeviceBounds() = 0;
172   virtual void rawDrawLine(jint, jint, jint, jint);
173   virtual void rawDrawRect(jint, jint, jint, jint);
174   virtual void rawClearRect(jint, jint, jint, jint);
175   virtual void rawFillRect(jint, jint, jint, jint);
176   virtual jboolean rawDrawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
177   virtual void rawCopyArea(jint, jint, jint, jint, jint, jint);
178 private:
179   void copyAreaImpl(jint, jint, jint, jint, jint, jint);
180 public:
181   virtual void renderScanline(jint, ::gnu::java::awt::java2d::ScanlineCoverage *);
182 public: // actually protected
183   virtual void init();
184   virtual ::java::awt::image::WritableRaster * getDestinationRaster();
185   virtual void updateRaster(::java::awt::image::Raster *, jint, jint, jint, jint);
186 private:
187   void updateOptimization();
188   static ::java::awt::Rectangle * computeIntersection(jint, jint, jint, jint, ::java::awt::Rectangle *);
189   void updateClip(::java::awt::geom::AffineTransform *);
190   ::gnu::java::awt::java2d::ScanlineConverter * getScanlineConverter();
191   void freeScanlineConverter(::gnu::java::awt::java2d::ScanlineConverter *);
192   ::java::awt::PaintContext * getPaintContext();
193 public:
194   static ::java::awt::Image * prepareImage(::java::awt::Image *, jint, jint);
195 public: // actually protected
196   static ::java::util::WeakHashMap * imageCache;
197 private:
198   static jboolean DEFAULT_TEXT_AA;
199   static ::java::awt::Font * FONT;
200   static const jint GV_CACHE_SIZE = 50;
201   static ::gnu::java::awt::java2d::ShapeCache * shapeCache;
202   static ::java::util::LinkedList * scanlineConverters;
203   static ::java::util::Map * gvCache;
204   static ::gnu::java::awt::java2d::TextCacheKey * searchTextKey;
205 public: // actually protected
206   ::java::awt::geom::AffineTransform * __attribute__((aligned(__alignof__( ::java::awt::Graphics2D)))) transform__;
207 private:
208   ::java::awt::Paint * paint;
209   ::java::awt::PaintContext * paintContext;
210   ::java::awt::Color * background;
211   ::java::awt::Color * foreground;
212   jboolean isForegroundColorNull;
213   ::java::awt::Font * font;
214   ::java::awt::Composite * composite;
215   ::java::awt::Stroke * stroke;
216   ::java::awt::Shape * clip__;
217   ::java::awt::RenderingHints * renderingHints;
218   ::java::awt::image::WritableRaster * destinationRaster;
219   jboolean isOptimized;
220   static ::java::awt::BasicStroke * STANDARD_STROKE;
221   static ::java::util::HashMap * STANDARD_HINTS;
222 public:
223   static ::java::lang::Class class$;
224 };
225 
226 #endif // __gnu_java_awt_java2d_AbstractGraphics2D__
227