1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_awt_print_PostScriptGraphics2D__
|
5 |
|
|
#define __gnu_java_awt_print_PostScriptGraphics2D__
|
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 print
|
21 |
|
|
{
|
22 |
|
|
class PostScriptGraphics2D;
|
23 |
|
|
class SpooledDocument;
|
24 |
|
|
}
|
25 |
|
|
}
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
namespace java
|
29 |
|
|
{
|
30 |
|
|
namespace awt
|
31 |
|
|
{
|
32 |
|
|
class Color;
|
33 |
|
|
class Composite;
|
34 |
|
|
class Font;
|
35 |
|
|
class FontMetrics;
|
36 |
|
|
class Graphics;
|
37 |
|
|
class GraphicsConfiguration;
|
38 |
|
|
class Image;
|
39 |
|
|
class Paint;
|
40 |
|
|
class Rectangle;
|
41 |
|
|
class RenderingHints;
|
42 |
|
|
class RenderingHints$Key;
|
43 |
|
|
class Shape;
|
44 |
|
|
class Stroke;
|
45 |
|
|
namespace font
|
46 |
|
|
{
|
47 |
|
|
class FontRenderContext;
|
48 |
|
|
class GlyphVector;
|
49 |
|
|
}
|
50 |
|
|
namespace geom
|
51 |
|
|
{
|
52 |
|
|
class AffineTransform;
|
53 |
|
|
}
|
54 |
|
|
namespace image
|
55 |
|
|
{
|
56 |
|
|
class BufferedImage;
|
57 |
|
|
class BufferedImageOp;
|
58 |
|
|
class ImageObserver;
|
59 |
|
|
class RenderedImage;
|
60 |
|
|
namespace renderable
|
61 |
|
|
{
|
62 |
|
|
class RenderableImage;
|
63 |
|
|
}
|
64 |
|
|
}
|
65 |
|
|
namespace print
|
66 |
|
|
{
|
67 |
|
|
class PageFormat;
|
68 |
|
|
class Pageable;
|
69 |
|
|
class Printable;
|
70 |
|
|
class PrinterJob;
|
71 |
|
|
}
|
72 |
|
|
}
|
73 |
|
|
namespace text
|
74 |
|
|
{
|
75 |
|
|
class AttributedCharacterIterator;
|
76 |
|
|
}
|
77 |
|
|
}
|
78 |
|
|
}
|
79 |
|
|
|
80 |
|
|
class gnu::java::awt::print::PostScriptGraphics2D : public ::java::awt::Graphics2D
|
81 |
|
|
{
|
82 |
|
|
|
83 |
|
|
public:
|
84 |
|
|
PostScriptGraphics2D(::java::awt::print::PrinterJob *);
|
85 |
|
|
virtual ::gnu::java::awt::print::SpooledDocument * spoolPostScript(::java::awt::print::Printable *, ::java::awt::print::PageFormat *, ::java::awt::print::Pageable *);
|
86 |
|
|
private:
|
87 |
|
|
void writePSHeader();
|
88 |
|
|
void setupFonts();
|
89 |
|
|
public:
|
90 |
|
|
virtual jint spoolPage(::java::io::PrintWriter *, ::java::awt::print::Printable *, ::java::awt::print::PageFormat *, jint);
|
91 |
|
|
private:
|
92 |
|
|
void pushCTM();
|
93 |
|
|
void popCTM();
|
94 |
|
|
public:
|
95 |
|
|
virtual ::java::awt::Graphics * create();
|
96 |
|
|
virtual void drawOval(jint, jint, jint, jint);
|
97 |
|
|
virtual void drawPolyline(JArray< jint > *, JArray< jint > *, jint);
|
98 |
|
|
virtual void drawRoundRect(jint, jint, jint, jint, jint, jint);
|
99 |
|
|
virtual void fillRoundRect(jint, jint, jint, jint, jint, jint);
|
100 |
|
|
virtual void drawArc(jint, jint, jint, jint, jint, jint);
|
101 |
|
|
virtual void fillArc(jint, jint, jint, jint, jint, jint);
|
102 |
|
|
virtual void fillOval(jint, jint, jint, jint);
|
103 |
|
|
virtual void fillPolygon(JArray< jint > *, JArray< jint > *, jint);
|
104 |
|
|
virtual void drawLine(jint, jint, jint, jint);
|
105 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
|
106 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
|
107 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
|
108 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
|
109 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
|
110 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
|
111 |
|
|
virtual void drawImage(::java::awt::image::BufferedImage *, ::java::awt::image::BufferedImageOp *, jint, jint);
|
112 |
|
|
virtual jboolean drawImage(::java::awt::Image *, ::java::awt::geom::AffineTransform *, ::java::awt::image::ImageObserver *);
|
113 |
|
|
virtual void drawRenderableImage(::java::awt::image::renderable::RenderableImage *, ::java::awt::geom::AffineTransform *);
|
114 |
|
|
virtual void drawRenderedImage(::java::awt::image::RenderedImage *, ::java::awt::geom::AffineTransform *);
|
115 |
|
|
virtual void drawPolygon(JArray< jint > *, JArray< jint > *, jint);
|
116 |
|
|
virtual void drawString(::java::lang::String *, jint, jint);
|
117 |
|
|
virtual void drawString(::java::lang::String *, jfloat, jfloat);
|
118 |
|
|
private:
|
119 |
|
|
void drawStringPSFont(::java::lang::String *, jfloat, jfloat);
|
120 |
|
|
void saveAndInvertAxis();
|
121 |
|
|
void restoreAxis();
|
122 |
|
|
void drawStringShape(::java::awt::Shape *);
|
123 |
|
|
public:
|
124 |
|
|
virtual void setColor(::java::awt::Color *);
|
125 |
|
|
virtual void clearRect(jint, jint, jint, jint);
|
126 |
|
|
virtual void clipRect(jint, jint, jint, jint);
|
127 |
|
|
virtual void copyArea(jint, jint, jint, jint, jint, jint);
|
128 |
|
|
virtual void fillRect(jint, jint, jint, jint);
|
129 |
|
|
virtual void dispose();
|
130 |
|
|
virtual void setClip(jint, jint, jint, jint);
|
131 |
|
|
virtual void setClip(::java::awt::Shape *);
|
132 |
|
|
virtual ::java::awt::Shape * getClip();
|
133 |
|
|
virtual ::java::awt::Rectangle * getClipBounds();
|
134 |
|
|
virtual ::java::awt::Color * getColor();
|
135 |
|
|
virtual ::java::awt::Font * getFont();
|
136 |
|
|
virtual ::java::awt::FontMetrics * getFontMetrics();
|
137 |
|
|
virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
|
138 |
|
|
virtual void setFont(::java::awt::Font *);
|
139 |
|
|
private:
|
140 |
|
|
void setPSFont();
|
141 |
|
|
public:
|
142 |
|
|
virtual void setPaintMode();
|
143 |
|
|
virtual void setXORMode(::java::awt::Color *);
|
144 |
|
|
virtual void close();
|
145 |
|
|
virtual void addRenderingHints(::java::util::Map *);
|
146 |
|
|
private:
|
147 |
|
|
void writeShape(::java::awt::Shape *);
|
148 |
|
|
public:
|
149 |
|
|
virtual void clip(::java::awt::Shape *);
|
150 |
|
|
virtual void draw(::java::awt::Shape *);
|
151 |
|
|
virtual void drawGlyphVector(::java::awt::font::GlyphVector *, jfloat, jfloat);
|
152 |
|
|
virtual void drawString(::java::text::AttributedCharacterIterator *, jfloat, jfloat);
|
153 |
|
|
virtual void drawString(::java::text::AttributedCharacterIterator *, jint, jint);
|
154 |
|
|
virtual void fill(::java::awt::Shape *);
|
155 |
|
|
virtual ::java::awt::Color * getBackground();
|
156 |
|
|
virtual ::java::awt::Composite * getComposite();
|
157 |
|
|
virtual ::java::awt::GraphicsConfiguration * getDeviceConfiguration();
|
158 |
|
|
virtual ::java::awt::font::FontRenderContext * getFontRenderContext();
|
159 |
|
|
virtual ::java::awt::Paint * getPaint();
|
160 |
|
|
virtual ::java::lang::Object * getRenderingHint(::java::awt::RenderingHints$Key *);
|
161 |
|
|
virtual ::java::awt::RenderingHints * getRenderingHints();
|
162 |
|
|
virtual ::java::awt::Stroke * getStroke();
|
163 |
|
|
virtual ::java::awt::geom::AffineTransform * getTransform();
|
164 |
|
|
virtual jboolean hit(::java::awt::Rectangle *, ::java::awt::Shape *, jboolean);
|
165 |
|
|
virtual void setBackground(::java::awt::Color *);
|
166 |
|
|
virtual void setComposite(::java::awt::Composite *);
|
167 |
|
|
virtual void setPaint(::java::awt::Paint *);
|
168 |
|
|
private:
|
169 |
|
|
::java::lang::String * colorTriple(::java::awt::Color *);
|
170 |
|
|
::java::lang::String * colorTripleHex(::java::awt::Color *);
|
171 |
|
|
void writeGradient();
|
172 |
|
|
public:
|
173 |
|
|
virtual void setRenderingHint(::java::awt::RenderingHints$Key *, ::java::lang::Object *);
|
174 |
|
|
virtual void setRenderingHints(::java::util::Map *);
|
175 |
|
|
virtual void setStroke(::java::awt::Stroke *);
|
176 |
|
|
private:
|
177 |
|
|
void concatCTM(::java::awt::geom::AffineTransform *);
|
178 |
|
|
public:
|
179 |
|
|
virtual void setTransform(::java::awt::geom::AffineTransform *);
|
180 |
|
|
virtual void transform(::java::awt::geom::AffineTransform *);
|
181 |
|
|
virtual void shear(jdouble, jdouble);
|
182 |
|
|
virtual void translate(jint, jint);
|
183 |
|
|
virtual void translate(jdouble, jdouble);
|
184 |
|
|
virtual void rotate(jdouble);
|
185 |
|
|
virtual void rotate(jdouble, jdouble, jdouble);
|
186 |
|
|
virtual void scale(jdouble, jdouble);
|
187 |
|
|
private:
|
188 |
|
|
::java::awt::print::PrinterJob * __attribute__((aligned(__alignof__( ::java::awt::Graphics2D)))) printerJob;
|
189 |
|
|
::java::io::PrintWriter * out;
|
190 |
|
|
::java::awt::geom::AffineTransform * currentTransform;
|
191 |
|
|
::java::awt::geom::AffineTransform * pageTransform;
|
192 |
|
|
::java::awt::RenderingHints * renderingHints;
|
193 |
|
|
::java::awt::Paint * currentPaint;
|
194 |
|
|
::java::awt::Shape * clipShape;
|
195 |
|
|
::java::awt::Font * currentFont;
|
196 |
|
|
::java::awt::Color * currentColor;
|
197 |
|
|
::java::awt::Color * backgroundColor;
|
198 |
|
|
::java::awt::Stroke * currentStroke;
|
199 |
|
|
static ::java::awt::Stroke * ordinaryStroke;
|
200 |
|
|
jfloat cx;
|
201 |
|
|
jfloat cy;
|
202 |
|
|
jboolean currentFontIsPS;
|
203 |
|
|
jdouble pageX;
|
204 |
|
|
jdouble pageY;
|
205 |
|
|
jdouble Y;
|
206 |
|
|
jboolean gradientOn;
|
207 |
|
|
public:
|
208 |
|
|
static ::java::lang::Class class$;
|
209 |
|
|
};
|
210 |
|
|
|
211 |
|
|
#endif // __gnu_java_awt_print_PostScriptGraphics2D__
|