X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2FjalviewLiteJs.html;h=78054d7e01a35cef4d38a968355711c38a408636;hb=c1fd44e7b1674e9476fd3507d9a6eb0d8f654ca5;hp=e33b30da66038b4c7301eb2ced6caddd8d574bc5;hpb=76cba6f16a2167e7f4c1a8d02afe351108e503b6;p=jalview.git diff --git a/examples/jalviewLiteJs.html b/examples/jalviewLiteJs.html index e33b30d..78054d7 100644 --- a/examples/jalviewLiteJs.html +++ b/examples/jalviewLiteJs.html @@ -1,143 +1,30 @@ - - -
- -- |
-
-
-
-
- - |
-
- - JalviewLite Javascript API - The jalviewLite applet's application programming interface (API) includes two components. A JalviewLite Javascript Library and the public methods on the JalviewLite applet. - The best way to learn how to use the API is to see it in action on the demonstration pages below: -
Notes+ + + + + + +The jalviewLite applet's application programming interface (API) includes two components. A JalviewLite Javascript Library and the public methods on the JalviewLite applet. + +Notes
JalviewLite's Java API+JalviewLite's Javascript APIThe following public methods on the jalviewLite applet are available to be called from javascript: //get list of IDs of selected sequences public String getSelectedSequences() @@ -215,11 +102,21 @@ public String getAlignmentFrom(AlignFrame alf, String format) public String getAlignmentFrom(AlignFrame alf, String format, String suffix) // add the given features or annotation to the current alignment +// if features are loaded, feature display is automatically enabled public void loadAnnotation(String annotation) // add the given features or annotation to the given alignment view +// if features are loaded, feature display is automatically enabled public void loadAnnotationFrom(AlignFrame alf, String annotation) +// parse the given string as a jalview or GFF features file and optionally enable feature display on the current alignment +// (v2.8) +public abstract void loadFeatures(String features, boolean autoenabledisplay) + +// parse the given string as a jalview or GFF features file and optionally enable feature display on the given alignment +// (v2.8) +public abstract void loadFeaturesFrom(AlignFrame alf, String features, boolean autoenabledisplay) + // get the sequence features in the given format (Jalview or GFF) public String getFeatures(String format) @@ -373,9 +270,5 @@ public static String getVersion() // debug flag - controls output to standard out public static boolean debug - |
-