4 * called by JSmol JavaScript methods using
\r
6 * this._applet.xxxx()
\r
9 public interface JSInterface {
\r
11 int cacheFileByName(String fileName, boolean isAdd);
\r
12 void cachePut(String key, Object data);
\r
14 String getFullName();
\r
15 void openFileAsyncSpecial(String fileName, int flags);
\r
16 boolean processMouseEvent(int id, int x, int y, int modifiers, long time);
\r
17 void processTwoPointGesture(float[][][] touches);
\r
18 void setDisplay(Object canvas);
\r
19 void setScreenDimension(int width, int height);
\r
20 boolean setStatusDragDropped(int mode, int x, int y, String fileName);
\r
21 void startHoverWatcher(boolean enable);
\r
24 // these are not general methods
\r
25 //Object getGLmolView();
\r
26 //String loadInlineString(String mol, String script, boolean isAppend);
\r
27 //String openFile(String fileName);
\r