toni@521
|
1 |
/**
|
toni@521
|
2 |
* Back 2 Browser Bytecode Translator
|
toni@521
|
3 |
* Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
|
toni@521
|
4 |
*
|
toni@521
|
5 |
* This program is free software: you can redistribute it and/or modify
|
toni@521
|
6 |
* it under the terms of the GNU General Public License as published by
|
toni@521
|
7 |
* the Free Software Foundation, version 2 of the License.
|
toni@521
|
8 |
*
|
toni@521
|
9 |
* This program is distributed in the hope that it will be useful,
|
toni@521
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
toni@521
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
toni@521
|
12 |
* GNU General Public License for more details.
|
toni@521
|
13 |
*
|
toni@521
|
14 |
* You should have received a copy of the GNU General Public License
|
toni@521
|
15 |
* along with this program. Look for COPYING file in the top folder.
|
toni@521
|
16 |
* If not, see http://opensource.org/licenses/GPL-2.0.
|
toni@521
|
17 |
*/
|
toni@521
|
18 |
package org.apidesign.bck2brwsr.htmlpage.api;
|
toni@521
|
19 |
|
toni@521
|
20 |
import org.apidesign.bck2brwsr.core.JavaScriptBody;
|
toni@521
|
21 |
|
toni@521
|
22 |
/**
|
toni@521
|
23 |
*
|
toni@521
|
24 |
* @author Anton Epple <toni.epple@eppleton.de>
|
toni@521
|
25 |
*/
|
toni@521
|
26 |
public class GraphicsContext {
|
toni@521
|
27 |
|
toni@521
|
28 |
Object context;
|
toni@521
|
29 |
|
toni@521
|
30 |
GraphicsContext(Object contextImpl) {
|
toni@521
|
31 |
this.context = contextImpl;
|
toni@521
|
32 |
}
|
toni@521
|
33 |
|
toni@521
|
34 |
@JavaScriptBody(args = {"centerx", "centery", "radius", "startangle", "endangle", "ccw"},
|
toni@521
|
35 |
body = "this.fld_context.arc(centerx,centery, radius, startangle, endangle,ccw);")
|
toni@521
|
36 |
public native void arc(double centerX,
|
toni@521
|
37 |
double centerY,
|
toni@521
|
38 |
double startAngle,
|
toni@521
|
39 |
double radius,
|
toni@521
|
40 |
double endAngle,
|
toni@521
|
41 |
boolean ccw);
|
toni@521
|
42 |
|
toni@521
|
43 |
@JavaScriptBody(args = {"x1", "y1", "x2", "y2", "r"},
|
toni@521
|
44 |
body = "this.fld_context.arcTo(x1,y1,x2,y2,r);")
|
toni@521
|
45 |
public native void arcTo(double x1,
|
toni@521
|
46 |
double y1,
|
toni@521
|
47 |
double x2,
|
toni@521
|
48 |
double y2,
|
toni@521
|
49 |
double r);
|
toni@521
|
50 |
|
toni@521
|
51 |
@JavaScriptBody(args = {"x", "y"},
|
toni@521
|
52 |
body = "return this.fld_context.isPointInPath(x,y);")
|
toni@521
|
53 |
public native boolean isPointInPath(double x, double y);
|
toni@521
|
54 |
|
toni@521
|
55 |
@JavaScriptBody(args = {}, body = "this.fld_context.fill();")
|
toni@521
|
56 |
public native void fill();
|
toni@521
|
57 |
|
toni@521
|
58 |
@JavaScriptBody(args = {}, body = "this.fld_context.stroke();")
|
toni@521
|
59 |
public native void stroke();
|
toni@521
|
60 |
|
toni@521
|
61 |
@JavaScriptBody(args = {}, body = "this.fld_context.beginPath();")
|
toni@521
|
62 |
public native void beginPath();
|
toni@521
|
63 |
|
toni@521
|
64 |
@JavaScriptBody(args = {}, body = "this.fld_context.closePath();")
|
toni@521
|
65 |
public native void closePath();
|
toni@521
|
66 |
|
toni@521
|
67 |
@JavaScriptBody(args = {}, body = "this.fld_context.clip();")
|
toni@521
|
68 |
public native void clip();
|
toni@521
|
69 |
|
toni@521
|
70 |
@JavaScriptBody(args = {"x", "y"}, body = "this.fld_context.moveTo(x,y);")
|
toni@521
|
71 |
public native void moveTo(double x, double y);
|
toni@521
|
72 |
|
toni@521
|
73 |
@JavaScriptBody(args = {"x", "y"}, body = "this.fld_context.lineTo(x,y);")
|
toni@521
|
74 |
public native void lineTo(double x, double y);
|
toni@521
|
75 |
|
toni@521
|
76 |
@JavaScriptBody(args = {"cpx", "cpy", "x", "y"}, body = "this.fld_context.quadraticCurveTo(cpx,cpy,x,y);")
|
toni@521
|
77 |
public native void quadraticCurveTo(double cpx, double cpy, double x, double y);
|
toni@521
|
78 |
|
toni@521
|
79 |
@JavaScriptBody(args = {"cp1x", "cp1y", "cp2x", "cp2y", "x", "y"},
|
toni@521
|
80 |
body = "this.fld_context.bezierCurveTo(cp1x,cp1y,cp2x,cp2y,x,y);")
|
toni@521
|
81 |
public native void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y);
|
toni@521
|
82 |
|
toni@521
|
83 |
@JavaScriptBody(args = {"x", "y", "width", "height"}, body = "this.fld_context.fillRect(x,y,width,height);")
|
toni@521
|
84 |
public native void fillRect(double x, double y, double width, double height);
|
toni@521
|
85 |
|
toni@521
|
86 |
@JavaScriptBody(args = {"x", "y", "width", "height"}, body = "this.fld_context.strokeRect(x,y,width,height);")
|
toni@521
|
87 |
public native void strokeRect(double x, double y, double width, double height);
|
toni@521
|
88 |
|
toni@521
|
89 |
@JavaScriptBody(args = {"x", "y", "width", "height"}, body = "this.fld_context.clearRect(x,y,width,height);")
|
toni@521
|
90 |
public native void clearRect(double x, double y, double width, double height);
|
toni@521
|
91 |
|
toni@521
|
92 |
@JavaScriptBody(args = {"x", "y", "width", "height"}, body = "this.fld_context.rectect(x,y,width,height);")
|
toni@521
|
93 |
public native void rect(double x, double y, double width, double height);
|
toni@521
|
94 |
|
toni@521
|
95 |
@JavaScriptBody(args = {}, body = "this.fld_context.save();")
|
toni@521
|
96 |
public native void save();
|
toni@521
|
97 |
|
toni@521
|
98 |
@JavaScriptBody(args = {}, body = "this.fld_context.restore();")
|
toni@521
|
99 |
public native void restore();
|
toni@521
|
100 |
|
toni@521
|
101 |
@JavaScriptBody(args = {"angle"}, body = "this.fld_context.rotate(angle);")
|
toni@521
|
102 |
public native void rotate(double angle);
|
toni@521
|
103 |
|
toni@521
|
104 |
@JavaScriptBody(args = {"a", "b", "c", "d", "e", "f"}, body = "this.fld_context.transform(a,b,c,d,e,f);")
|
toni@521
|
105 |
public native void transform(double a, double b, double c, double d, double e, double f);
|
toni@521
|
106 |
|
toni@521
|
107 |
@JavaScriptBody(args = {"a", "b", "c", "d", "e", "f"}, body = "this.fld_context.setTransform(a,b,c,d,e,f);")
|
toni@521
|
108 |
public native void setTransform(double a, double b, double c, double d, double e, double f);
|
toni@521
|
109 |
|
toni@521
|
110 |
@JavaScriptBody(args = {"x", "y"}, body = "this.fld_context.translate(x,y);")
|
toni@521
|
111 |
public native void translate(double x, double y);
|
toni@521
|
112 |
|
toni@521
|
113 |
@JavaScriptBody(args = {"x", "y"}, body = "this.fld_context.scale(x,y);")
|
toni@521
|
114 |
public native void scale(double x, double y);
|
toni@521
|
115 |
|
toni@521
|
116 |
public void drawImage(Image image, double x, double y) {
|
toni@521
|
117 |
drawImageImpl(context, Element.getElementById(image), x, y);
|
toni@521
|
118 |
}
|
toni@521
|
119 |
|
toni@521
|
120 |
public void drawImage(Image image, double x, double y, double width, double height) {
|
toni@521
|
121 |
drawImageImpl(context, Element.getElementById(image), x, y, width, height);
|
toni@521
|
122 |
}
|
toni@521
|
123 |
|
toni@521
|
124 |
public void drawImage(Image image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height) {
|
toni@521
|
125 |
drawImageImpl(context, Element.getElementById(image), sx, sy, sWidth, sHeight, x, y, width, height);
|
toni@521
|
126 |
}
|
toni@521
|
127 |
|
toni@521
|
128 |
@JavaScriptBody(args = {"ctx", "img", "x", "y", "width", "height"}, body = "ctx.drawImage(img,x,y,width,height);")
|
toni@521
|
129 |
private native static void drawImageImpl(Object ctx, Object img, double x, double y, double width, double height);
|
toni@521
|
130 |
|
toni@521
|
131 |
@JavaScriptBody(args = {"ctx", "img", "sx", "sy", "swidth", "sheight", "x", "y", "width", "height"}, body = "ctx.drawImage(img,sx,sy,swidth,sheight,x,y,width,height);")
|
toni@521
|
132 |
private native static void drawImageImpl(Object ctx, Object img, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height);
|
toni@521
|
133 |
|
toni@521
|
134 |
@JavaScriptBody(args = {"ctx", "img", "x", "y"}, body = "ctx.drawImage(img,x,y);")
|
toni@521
|
135 |
private native static void drawImageImpl(Object ctx, Object img, double x, double y);
|
toni@521
|
136 |
|
toni@521
|
137 |
@JavaScriptBody(args = {"style"}, body = "this.fld_context.fillStyle=style;")
|
toni@521
|
138 |
public native void setFillStyle(String style);
|
toni@521
|
139 |
|
toni@521
|
140 |
@JavaScriptBody(args = {}, body = "return this.fld_context.fillStyle;")
|
toni@521
|
141 |
public native String getFillStyle();
|
toni@521
|
142 |
|
toni@521
|
143 |
public void setFillStyle(LinearGradient style) {
|
toni@521
|
144 |
setFillStyleImpl(context, style.object());
|
toni@521
|
145 |
}
|
toni@521
|
146 |
|
toni@521
|
147 |
public void setFillStyle(RadialGradient style) {
|
toni@521
|
148 |
setFillStyleImpl(context, style.object());
|
toni@521
|
149 |
}
|
toni@521
|
150 |
|
toni@521
|
151 |
public void setFillStyle(Pattern style) {
|
toni@521
|
152 |
setFillStyleImpl(context, style.object());
|
toni@521
|
153 |
}
|
toni@521
|
154 |
|
toni@521
|
155 |
@JavaScriptBody(args = {"context","obj"}, body = "context.fillStyle=obj;")
|
toni@521
|
156 |
private native void setFillStyleImpl(Object context, Object obj);
|
toni@521
|
157 |
|
toni@521
|
158 |
@JavaScriptBody(args = {"style"}, body = "this.fld_context.strokeStyle=style;")
|
toni@521
|
159 |
public native void setStrokeStyle(String style);
|
toni@521
|
160 |
|
toni@521
|
161 |
public void setStrokeStyle(LinearGradient style) {
|
toni@521
|
162 |
setStrokeStyleImpl(context, style.object());
|
toni@521
|
163 |
}
|
toni@521
|
164 |
|
toni@521
|
165 |
public void setStrokeStyle(RadialGradient style) {
|
toni@521
|
166 |
setStrokeStyleImpl(context, style.object());
|
toni@521
|
167 |
}
|
toni@521
|
168 |
|
toni@521
|
169 |
@JavaScriptBody(args = {"style"}, body = "this.fld_context.fillStyle=style;")
|
toni@521
|
170 |
public void setStrokeStyle(Pattern style) {
|
toni@521
|
171 |
setStrokeStyleImpl(context, style.object());
|
toni@521
|
172 |
}
|
toni@521
|
173 |
|
toni@521
|
174 |
@JavaScriptBody(args = {"context","obj"}, body = "context.strokeStyle=obj;")
|
toni@521
|
175 |
private native void setStrokeStyleImpl(Object context, Object obj);
|
toni@521
|
176 |
|
toni@521
|
177 |
@JavaScriptBody(args = {"color"}, body = "this.fld_context.shadowColor=color;")
|
toni@521
|
178 |
public native void setShadowColor(String color);
|
toni@521
|
179 |
|
toni@521
|
180 |
@JavaScriptBody(args = {"blur"}, body = "this.fld_context.shadowBlur=blur;")
|
toni@521
|
181 |
public native void setShadowBlur(double blur);
|
toni@521
|
182 |
|
toni@521
|
183 |
@JavaScriptBody(args = {"x"}, body = "this.fld_context.shadowOffsetX=x;")
|
toni@521
|
184 |
public native void setShadowOffsetX(double x);
|
toni@521
|
185 |
|
toni@521
|
186 |
@JavaScriptBody(args = {"y"}, body = "this.fld_context.shadowOffsetY=y;")
|
toni@521
|
187 |
public native void setShadowOffsetY(double y);
|
toni@521
|
188 |
|
toni@521
|
189 |
@JavaScriptBody(args = {}, body = "return this.fld_context.strokeStyle;")
|
toni@521
|
190 |
public native String getStrokeStyle();
|
toni@521
|
191 |
|
toni@521
|
192 |
@JavaScriptBody(args = {}, body = "return this.fld_context.shadowColor;")
|
toni@521
|
193 |
public native String getShadowColor();
|
toni@521
|
194 |
|
toni@521
|
195 |
@JavaScriptBody(args = {}, body = "return this.fld_context.shadowBlur;")
|
toni@521
|
196 |
public native double getShadowBlur();
|
toni@521
|
197 |
|
toni@521
|
198 |
@JavaScriptBody(args = {}, body = "return this.fld_context.shadowOffsetX;")
|
toni@521
|
199 |
public native double getShadowOffsetX();
|
toni@521
|
200 |
|
toni@521
|
201 |
@JavaScriptBody(args = {}, body = "return this.fld_context.shadowOffsetY;")
|
toni@521
|
202 |
public native double getShadowOffsetY();
|
toni@521
|
203 |
|
toni@521
|
204 |
@JavaScriptBody(args = {}, body = "return this.fld_context.lineCap;")
|
toni@521
|
205 |
public native String getLineCap();
|
toni@521
|
206 |
|
toni@521
|
207 |
@JavaScriptBody(args = {"style"}, body = "this.fld_context.lineCap=style;")
|
toni@521
|
208 |
public native void setLineCap(String style);
|
toni@521
|
209 |
|
toni@521
|
210 |
@JavaScriptBody(args = {}, body = "return this.fld_context.lineJoin;")
|
toni@521
|
211 |
public native String getLineJoin();
|
toni@521
|
212 |
|
toni@521
|
213 |
@JavaScriptBody(args = {"style"}, body = "this.fld_context.lineJoin=style;")
|
toni@521
|
214 |
public native void setLineJoin(String style) ;
|
toni@521
|
215 |
|
toni@521
|
216 |
@JavaScriptBody(args = {}, body = "return this.fld_context.lineWidth;")
|
toni@521
|
217 |
public native double getLineWidth();
|
toni@521
|
218 |
|
toni@521
|
219 |
@JavaScriptBody(args = {"width"}, body = "this.fld_context.lineJoin=width;")
|
toni@521
|
220 |
public native void setLineWidth(double width);
|
toni@521
|
221 |
|
toni@521
|
222 |
@JavaScriptBody(args = {}, body = "return this.fld_context.miterLimit;")
|
toni@521
|
223 |
public native double getMiterLimit();
|
toni@521
|
224 |
|
toni@521
|
225 |
@JavaScriptBody(args = {"limit"}, body = "this.fld_context.miterLimit=limit;")
|
toni@521
|
226 |
public native void setMiterLimit(double limit);
|
toni@521
|
227 |
|
toni@521
|
228 |
@JavaScriptBody(args = {}, body = "return this.fld_context.font;")
|
toni@521
|
229 |
public native String getFont();
|
toni@521
|
230 |
|
toni@521
|
231 |
@JavaScriptBody(args = {"font"}, body = "this.fld_context.font=font;")
|
toni@521
|
232 |
public native void setFont(String font);
|
toni@521
|
233 |
|
toni@521
|
234 |
@JavaScriptBody(args = {}, body = "return this.fld_context.textAlign;")
|
toni@521
|
235 |
public native String getTextAlign();
|
toni@521
|
236 |
|
toni@521
|
237 |
@JavaScriptBody(args = {"textalign"}, body = "this.fld_context.textAlign=textalign;")
|
toni@521
|
238 |
public native void setTextAlign(String textAlign);
|
toni@521
|
239 |
|
toni@521
|
240 |
@JavaScriptBody(args = {}, body = "return this.fld_context.textBaseline;")
|
toni@521
|
241 |
public native String getTextBaseline();
|
toni@521
|
242 |
|
toni@521
|
243 |
@JavaScriptBody(args = {"textbaseline"}, body = "this.fld_context.textBaseline=textbaseline;")
|
toni@521
|
244 |
public native void setTextBaseline(String textbaseline);
|
toni@521
|
245 |
|
toni@521
|
246 |
@JavaScriptBody(args = {"text", "x", "y"}, body = "this.fld_context.fillText(text,x,y);")
|
toni@521
|
247 |
public native void fillText(String text, double x, double y);
|
toni@521
|
248 |
|
toni@521
|
249 |
@JavaScriptBody(args = {"text", "x", "y", "maxwidth"}, body = "this.fld_context.fillText(text,x,y,maxwidth);")
|
toni@521
|
250 |
public void fillText(String text, double x, double y, double maxWidth) {
|
toni@521
|
251 |
}
|
toni@521
|
252 |
|
toni@521
|
253 |
public TextMetrics measureText(String text) {
|
toni@521
|
254 |
return new TextMetrics(measureTextImpl(text));
|
toni@521
|
255 |
}
|
toni@521
|
256 |
|
toni@521
|
257 |
@JavaScriptBody(args = {"text"},
|
toni@521
|
258 |
body = "return this.fld_context.measureText(text);")
|
toni@521
|
259 |
private native Object measureTextImpl(String text);
|
toni@521
|
260 |
|
toni@521
|
261 |
@JavaScriptBody(args = {"text", "x", "y"}, body = "this.fld_context.strokeText(text,x,y);")
|
toni@521
|
262 |
public native void strokeText(String text, double x, double y);
|
toni@521
|
263 |
|
toni@521
|
264 |
@JavaScriptBody(args = {"text", "x", "y", "maxWidth"}, body = "this.fld_context.strokeText(text,x,y,maxWidth);")
|
toni@521
|
265 |
public native void strokeText(String text, double x, double y, double maxWidth) ;
|
toni@521
|
266 |
|
toni@521
|
267 |
public ImageData createImageData(double x, double y) {
|
toni@521
|
268 |
return new ImageData(createImageDataImpl(x, y));
|
toni@521
|
269 |
}
|
toni@521
|
270 |
|
toni@521
|
271 |
@JavaScriptBody(args = {"x", "y"},
|
toni@521
|
272 |
body = "return this.fld_context.createImageData(x,y);")
|
toni@521
|
273 |
private native Object createImageDataImpl(double x, double y);
|
toni@521
|
274 |
|
toni@521
|
275 |
public ImageData createImageData(ImageData imageData) {
|
toni@521
|
276 |
return new ImageData(createImageDataImpl(imageData.getWidth(), imageData.getHeight()));
|
toni@521
|
277 |
}
|
toni@521
|
278 |
|
toni@521
|
279 |
public ImageData getImageData(double x, double y, double width, double height) {
|
toni@521
|
280 |
return new ImageData(getImageDataImpl(x, y, width, height));
|
toni@521
|
281 |
}
|
toni@521
|
282 |
|
toni@521
|
283 |
@JavaScriptBody(args = {"x", "y", "width", "height"},
|
toni@521
|
284 |
body = "return this.fld_context.getImageData(x,y,width,height);")
|
toni@521
|
285 |
private native Object getImageDataImpl(double x, double y, double width, double height);
|
toni@521
|
286 |
|
toni@521
|
287 |
public void putImageData(ImageData imageData, double x, double y) {
|
toni@521
|
288 |
putImageDataImpl(imageData.object(), x, y);
|
toni@521
|
289 |
}
|
toni@521
|
290 |
|
toni@521
|
291 |
@JavaScriptBody(args = {"imageData", "x", "y"},
|
toni@521
|
292 |
body = "this.fld_context.putImageData(imageData,x,y);")
|
toni@521
|
293 |
private native void putImageDataImpl(Object imageData, double x, double y);
|
toni@521
|
294 |
|
toni@521
|
295 |
public void putImageData(ImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight) {
|
toni@521
|
296 |
putImageDataImpl(imageData.object(), x, y, dirtyx, dirtyy, dirtywidth, dirtyheight);
|
toni@521
|
297 |
}
|
toni@521
|
298 |
|
toni@521
|
299 |
@JavaScriptBody(args = {"imageData", "x", "y", "dirtyx", "dirtyy", "dirtywidth", "dirtyheight"},
|
toni@521
|
300 |
body = "this.fld_context.putImageData(imageData,x,y, dirtyx, dirtyy, dirtywidth,dirtyheight);")
|
toni@521
|
301 |
private native void putImageDataImpl(Object imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight);
|
toni@521
|
302 |
|
toni@521
|
303 |
@JavaScriptBody(args = {"alpha"}, body = "this.fld_context.globalAlpha=alpha;")
|
toni@521
|
304 |
public native void setGlobalAlpha(double alpha) ;
|
toni@521
|
305 |
|
toni@521
|
306 |
@JavaScriptBody(args = {}, body = "return this.fld_context.globalAlpha;")
|
toni@521
|
307 |
public native double getGlobalAlpha();
|
toni@521
|
308 |
|
toni@521
|
309 |
@JavaScriptBody(args = {"operation"}, body = "this.fld_context.globalCompositeOperation=operation;")
|
toni@521
|
310 |
public native void setGlobalCompositeOperation(double alpha);
|
toni@521
|
311 |
|
toni@521
|
312 |
@JavaScriptBody(args = {}, body = "return this.fld_context.globalCompositeOperation;")
|
toni@521
|
313 |
public native double getGlobalCompositeOperation();
|
toni@521
|
314 |
|
toni@521
|
315 |
public LinearGradient createLinearGradient(double x0, double y0, double x1, double y1) {
|
toni@521
|
316 |
return new LinearGradient(createLinearGradientImpl(context, x0, y0, x1, y1));
|
toni@521
|
317 |
}
|
toni@521
|
318 |
|
toni@521
|
319 |
@JavaScriptBody(args = {"context", "x0", "y0", "x1", "y1"}, body = "return context.createLinearGradient(x0,y0,x1,y1);")
|
toni@521
|
320 |
private native Object createLinearGradientImpl(Object context, double x0, double y0, double x1, double y1);
|
toni@521
|
321 |
|
toni@521
|
322 |
public Pattern createPattern(Image image, String repeat) {
|
toni@521
|
323 |
return new Pattern(createPatternImpl(context, image, repeat));
|
toni@521
|
324 |
}
|
toni@521
|
325 |
|
toni@521
|
326 |
@JavaScriptBody(args = {"context", "image", "repeat"}, body = "return context.createPattern(image, repeat);")
|
toni@521
|
327 |
private static native Object createPatternImpl(Object context, Image image, String repeat);
|
toni@521
|
328 |
|
toni@521
|
329 |
public RadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1) {
|
toni@521
|
330 |
return new RadialGradient(createRadialGradientImpl(context, x0, y0, r0, x1, y1, r1));
|
toni@521
|
331 |
}
|
toni@521
|
332 |
|
toni@521
|
333 |
@JavaScriptBody(args = {"context", "x0", "y0", "r0", "x1", "y1", "r1"}, body = "return context.createRadialGradient(x0,y0,r0,x1,y1,r1);")
|
toni@521
|
334 |
private static native Object createRadialGradientImpl(Object context, double x0, double y0, double r0, double x1, double y1, double r1);
|
toni@521
|
335 |
}
|