Skip to content

Commit acfa7ee

Browse files
hansonrhansonr
authored andcommitted
J2SObjectInterface adds functions for JSmol
Object doAjax(Object url, String postOut, Object bytesOrStringOut, boolean isBinary); Object newGrayScaleImage(Object context, Object image, int width, int height, int[] grayBuffer); void showInfo(JSAppletObject html5Applet, boolean show); void clearConsole(JSAppletObject html5Applet); boolean isBinaryUrl(String filename); void saveImage(JSAppletObject html5Applet, String type, String fileName); void repaint(JSAppletObject html5Applet, boolean asNewThread); void setCanvasImage(Object canvas, int width, int height); Object getHiddenCanvas(JSAppletObject html5Applet, String string, int w, int h); Object loadFileAsynchronously(Object fileLoadThread, JSAppletObject html5Applet, String fileName, Object appData); void resizeApplet(Object html5Applet, int[] dims);
1 parent 48b3f9f commit acfa7ee

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed
Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
11
package javajs.api.js;
22

33
/**
4-
* methods in JSmol JavaScript accessed in Jmol
4+
* methods in j2s JavaScript accessed in Jmol
55
*/
66
public interface J2SObjectInterface {
77

88
Object doAjax(String url, String postOut, Object bytesOrStringOut, Object info);
99

10+
Object doAjax(Object url, String postOut, Object bytesOrStringOut, boolean isBinary);
11+
1012
void applyFunc(Object func, Object data);
1113

14+
Object newGrayScaleImage(Object context, Object image, int width, int height, int[] grayBuffer);
15+
16+
void showInfo(JSAppletObject html5Applet, boolean show);
17+
18+
void clearConsole(JSAppletObject html5Applet);
19+
20+
boolean isBinaryUrl(String filename);
21+
22+
void saveImage(JSAppletObject html5Applet, String type, String fileName);
23+
24+
void repaint(JSAppletObject html5Applet, boolean asNewThread);
25+
26+
void setCanvasImage(Object canvas, int width, int height);
27+
28+
Object getHiddenCanvas(JSAppletObject html5Applet, String string, int w, int h);
29+
30+
Object loadFileAsynchronously(Object fileLoadThread, JSAppletObject html5Applet, String fileName, Object appData);
31+
32+
void resizeApplet(Object html5Applet, int[] dims);
33+
1234
}

0 commit comments

Comments
 (0)