}
if (cs != null)
{
- cs.setConservation(c);
-
- if (cs instanceof ClustalxColourScheme)
+ if (cs.conservationApplied())
{
- ((ClustalxColourScheme) cs)
- .resetClustalX(sequences, getWidth());
+ cs.setConservation(c);
+
+ if (cs instanceof ClustalxColourScheme)
+ {
+ ((ClustalxColourScheme) cs).resetClustalX(sequences,
+ getWidth());
+ }
}
}
}
private boolean showConsensusHistogram;
/**
- * set this alignmentAnnotation object as the one used to render consensus annotation
+ * set this alignmentAnnotation object as the one used to render consensus
+ * annotation
+ *
* @param aan
*/
public void setConsensus(AlignmentAnnotation aan)
{
- if (consensus==null)
+ if (consensus == null)
{
- consensus=aan;
+ consensus = aan;
}
}
-
+
/**
*
* @return automatically calculated consensus row
}
/**
- * set this alignmentAnnotation object as the one used to render consensus annotation
+ * set this alignmentAnnotation object as the one used to render consensus
+ * annotation
+ *
* @param aan
*/
public void setConservationRow(AlignmentAnnotation aan)
{
- if (conservation==null)
+ if (conservation == null)
{
- conservation=aan;
+ conservation = aan;
}
}
+
/**
* get the conservation annotation row for this group
*