JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / src / javajs / api / JSInterface.java
1 package javajs.api;\r
2 \r
3 /** \r
4  * called by JSmol JavaScript methods using\r
5  * \r
6  *  this._applet.xxxx()\r
7  *  \r
8  */\r
9 public interface JSInterface {\r
10 \r
11   int cacheFileByName(String fileName, boolean isAdd);\r
12   void cachePut(String key, Object data);\r
13   void destroy();\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
22         void update();\r
23 \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
28 \r
29 }\r
30 \r