documentation (JAL-859, JAL-816, JAL-621)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 3 Jul 2011 12:42:29 +0000 (13:42 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 3 Jul 2011 12:42:29 +0000 (13:42 +0100)
src/jalview/javascript/MouseOverStructureListener.java

index c1d3a40..41af88e 100644 (file)
@@ -12,6 +12,29 @@ import jalview.structure.StructureListener;
 import jalview.structure.StructureMapping;\r
 import jalview.structure.StructureSelectionManager;\r
 \r
+/**\r
+ * Propagate events involving PDB structures associated with sequences to a\r
+ * javascript function. Generally, the javascript handler is called with a\r
+ * series of arguments like (eventname, ... ). As of Jalview 2.7, the following\r
+ * different types of events are supported:\r
+ * <ul>\r
+ * <li>mouseover: javascript function called with arguments <pre>\r
+ * ['mouseover',String(pdb file URI), String(pdb file chain ID), String(residue\r
+ * number moused over), String(atom index corresponding to residue)]</pre></li>\r
+ * <li>colourstruct: javascript function called with arguments <pre>\r
+ * ['colourstruct',String(alignment view id),String(number of javascript message\r
+ * chunks to collect),String(length of first chunk in set of messages - or zero\r
+ * for null message)]</pre><br>\r
+ * The message contains a series of Jmol script commands that will colour\r
+ * structures according to their associated sequences in the current view. Use\r
+ * jalview\r
+ * .javascript.JalviewLiteJsApi.getJsMessage('colourstruct',String(alignment\r
+ * view id)) to retrieve successive chunks of the message.</li>\r
+ * </ul>\r
+ * \r
+ * @author Jim Procter (jprocter)\r
+ * \r
+ */\r
 public class MouseOverStructureListener extends JSFunctionExec implements\r
         JsCallBack, StructureListener\r
 {\r