(JAL-965) new api methods to allow features to be loaded without automatically enabli...
[jalview.git] / src / jalview / javascript / JalviewLiteJsApi.java
index 103e7da..d064790 100644 (file)
@@ -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