X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjavascript%2FJalviewLiteJsApi.java;h=de3d29e4d1a032f77a8c1e529a0e717a2f777552;hb=887c53273a44cff58d64ee094d9e76bb2f90265b;hp=1231d18e6936f73a7f4f2b6ff5f93c90166166af;hpb=797df64fa2a0a30773d0f48f5494d4155e5a8be3;p=jalview.git diff --git a/src/jalview/javascript/JalviewLiteJsApi.java b/src/jalview/javascript/JalviewLiteJsApi.java index 1231d18..de3d29e 100644 --- a/src/jalview/javascript/JalviewLiteJsApi.java +++ b/src/jalview/javascript/JalviewLiteJsApi.java @@ -280,6 +280,21 @@ public interface JalviewLiteJsApi public abstract void loadAnnotationFrom(AlignFrame alf, String annotation); /** + * parse the given string as a jalview feature or GFF annotation file and optionally enable feature display on the current alignFrame + * @param features - gff or features file + * @param autoenabledisplay - when true, feature display will be enabled if any features can be parsed from the string. + */ + public abstract void loadFeatures(String features, boolean autoenabledisplay); + + /** + * parse the given string as a jalview feature or GFF annotation file and optionally enable feature display on the given alignFrame. + * @param alf + * @param features - gff or features file + * @param autoenabledisplay - when true, feature display will be enabled if any features can be parsed from the string. + */ + public abstract void loadFeaturesFrom(AlignFrame alf, String features, boolean autoenabledisplay); + + /** * get the sequence features in the given format (Jalview or GFF) * @param format * @return