Merge branch 'Jalview-BH/JAL-3026-JAL-3063-JAXB' of
[jalview.git] / unused / javajs / api / JSInterface.java
1 package javajs.api;
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   void cachePut(String key, Object data);
13   void destroy();
14   String getFullName();
15   void openFileAsyncSpecial(String fileName, int flags);
16   boolean processMouseEvent(int id, int x, int y, int modifiers, long time);
17   void processTwoPointGesture(float[][][] touches);
18   void setDisplay(Object canvas);
19   void setScreenDimension(int width, int height);
20   boolean setStatusDragDropped(int mode, int x, int y, String fileName);
21         void startHoverWatcher(boolean enable);
22         void update();
23
24         // these are not general methods
25 //Object getGLmolView();
26 //String loadInlineString(String mol, String script, boolean isAppend);
27 //String openFile(String fileName);
28
29 }
30