JAL-3442 colour caching for Overview resize
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 851ef79..7c9c418 100755 (executable)
@@ -606,5 +606,27 @@ public interface SequenceI extends ASequenceI
    */
   public boolean hasFeatures(String type);
 
+  /**
+   * Returns the rgb value of the colour at position i, or 0 if not known
+   * 
+   * @param i
+   * @return
+   */
+  public int getColor(int i);
+
+  /**
+   * Sets the rgb value of the colour at position i
+   * 
+   * @param i
+   * @param rgb
+   * @return
+   */
+  public int setColor(int i, int rgb);
+
+  /**
+   * Clears any cached colours
+   */
+  public void resetColors();
+
 }