Merge branch 'Jalview-BH/JAL-3026-JAL-3063-JAXB' of
[jalview.git] / srcjar / javajs / api / js / JSInterface.java
1 package javajs.api.js;
2
3 /**
4  * called by JSmol JavaScript methods using
5  * 
6  * this._applet.xxxx()
7  * 
8  */
9 public interface JSInterface {
10
11         int cacheFileByName(String fileName, boolean isAdd);
12
13         void cachePut(String key, Object data);
14
15         void destroy();
16
17         String getFullName();
18
19         void openFileAsyncSpecial(String fileName, int flags);
20
21         boolean processMouseEvent(int id, int x, int y, int modifiers, long time);
22
23         void processTwoPointGesture(float[][][] touches);
24
25         void setDisplay(Object canvas);
26
27         void setScreenDimension(int width, int height);
28
29         boolean setStatusDragDropped(int mode, int x, int y, String fileName);
30
31         void startHoverWatcher(boolean enable);
32         
33         
34
35         // these are not general methods
36         // Object getGLmolView();
37         // String loadInlineString(String mol, String script, boolean isAppend);
38         // String openFile(String fileName);
39
40 }
41