removes org.json from srcjar
[jalview.git] / unused / javajs / api / js / JSInterface.java
diff --git a/unused/javajs/api/js/JSInterface.java b/unused/javajs/api/js/JSInterface.java
new file mode 100644 (file)
index 0000000..9b26631
--- /dev/null
@@ -0,0 +1,41 @@
+package javajs.api.js;
+
+/**
+ * called by JSmol JavaScript methods using
+ * 
+ * this._applet.xxxx()
+ * 
+ */
+public interface JSInterface {
+
+       int cacheFileByName(String fileName, boolean isAdd);
+
+       void cachePut(String key, Object data);
+
+       void destroy();
+
+       String getFullName();
+
+       void openFileAsyncSpecial(String fileName, int flags);
+
+       boolean processMouseEvent(int id, int x, int y, int modifiers, long time);
+
+       void processTwoPointGesture(float[][][] touches);
+
+       void setDisplay(Object canvas);
+
+       void setScreenDimension(int width, int height);
+
+       boolean setStatusDragDropped(int mode, int x, int y, String fileName);
+
+       void startHoverWatcher(boolean enable);
+       
+       
+
+       // these are not general methods
+       // Object getGLmolView();
+       // String loadInlineString(String mol, String script, boolean isAppend);
+       // String openFile(String fileName);
+
+}
+