git://source.jalview.org
/
jalviewjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1807 Bob
[jalviewjs.git]
/
site
/
j2s
/
awt2swing
/
Util.js
diff --git a/site/j2s/awt2swing/Util.js
b/site/j2s/awt2swing/Util.js
new file mode 100644
(file)
index 0000000..
eaf6bf6
--- /dev/null
+++ b/
site/j2s/awt2swing/Util.js
@@ -0,0
+1,7
@@
+Clazz.declarePackage ("awt2swing");
+c$ = Clazz.declareType (awt2swing, "Util");
+c$.drawString = Clazz.defineMethod (c$, "drawString",
+function (g, text, x, y) {
+{
+g.drawStringUnique(text, x, y);
+}}, "java.awt.Graphics,~S,~N,~N");