JAL-3148 further bug fix to state of 'colourBy'
[jalview.git] / src / jalview / schemes / ResidueColourScheme.java
index 34a5daa..3f1ee7f 100755 (executable)
@@ -92,9 +92,7 @@ public abstract class ResidueColourScheme implements ColourSchemeI
     symbolIndex = null;
   }
 
-  /**
-   * Find a colour without an index in a sequence
-   */
+  @Override
   public Color findColour(char c)
   {
     Color colour = Color.white;
@@ -208,4 +206,14 @@ public abstract class ResidueColourScheme implements ColourSchemeI
   {
     return true;
   }
+
+  /**
+   * Default method returns false. Override this to return true in colour
+   * schemes that have a colour associated with gap residues.
+   */
+  @Override
+  public boolean hasGapColour()
+  {
+    return false;
+  }
 }