import java.util.Hashtable;
import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.SequenceI;
/**
* Looks at the information computed from an RNA Stockholm format file on the
*/
public RNAHelicesColour(AlignmentAnnotation annotation)
{
+ super(ResidueProperties.nucleotideIndex);
this.annotation = annotation;
refresh();
}
public void refresh()
{
- if (lastrefresh != annotation._rnasecstr.hashCode() && annotation.isValidStruc())
+ if (lastrefresh != annotation._rnasecstr.hashCode()
+ && annotation.isValidStruc())
{
annotation.getRNAStruc();
lastrefresh = annotation._rnasecstr.hashCode();
*
* @return color in RGB
*/
+ @Override
public Color findColour(char c)
{
return ResidueProperties.purinepyrimidine[ResidueProperties.purinepyrimidineIndex[c]];
*
* @return Color in RGB
*/
- public Color findColour(char c, int j)
+ @Override
+ public Color findColour(char c, int j, SequenceI seq)
{
refresh();
Color currentColour = Color.white;