Merge branch 'Jalview-JS/develop' into develop
[jalview.git] / src / swingjs / api / js / HTML5Applet.java
diff --git a/src/swingjs/api/js/HTML5Applet.java b/src/swingjs/api/js/HTML5Applet.java
new file mode 100644 (file)
index 0000000..b844476
--- /dev/null
@@ -0,0 +1,35 @@
+package swingjs.api.js;
+
+public interface HTML5Applet {
+
+       /**
+        * The canvas that is being used by the HTML5 applet 
+        * 
+        * @return
+        */
+       Object _getHtml5Canvas();
+
+       int _getHeight();
+
+       int _getWidth();
+
+       /**
+        * The div associated with the HTML5 applet 
+        * 
+        * @return
+        */
+       Object _getContentLayer();
+
+       /**
+        * Simple resizing for an inline applet
+        * 
+        * @param widthHeight
+        */
+       void _resizeApplet(int[] widthHeight);
+
+       void _show(boolean b);
+
+       String _getID();
+
+
+}