{
// TODO replace 8 or so code duplications with calls to this method
// (refactored as needed)
- return resColourFinder.getResidueColour(av.getResidueShading(),
+ return resColourFinder.getResidueColour(av.getShowBoxes(),
+ av.getResidueShading(),
allGroups, seq, position, finder);
}
int length = seq.getLength();
int curStart = -1;
- int curWidth = av.getCharWidth(), avCharWidth = av.getCharWidth(), avCharHeight = av
- .getCharHeight();
+ int curWidth = av.getCharWidth(), avCharWidth = av.getCharWidth(),
+ avCharHeight = av.getCharHeight();
Color resBoxColour = Color.white;
Color tempColour = null;
}
charOffset = (avCharWidth - fm.charWidth(s)) / 2;
- graphics.drawString(String.valueOf(s), charOffset + avCharWidth
- * (i - start), y1);
+ graphics.drawString(String.valueOf(s),
+ charOffset + avCharWidth * (i - start), y1);
}
}
// currentSequenceGroup.getConsensus()
char conschar = (usesrep) ? (currentGroup == null
|| position < currentGroup.getStartRes()
- || position > currentGroup.getEndRes() ? av.getAlignment()
- .getSeqrep().getCharAt(position)
- : (currentGroup.getSeqrep() != null ? currentGroup.getSeqrep()
- .getCharAt(position) : av.getAlignment().getSeqrep()
- .getCharAt(position)))
+ || position > currentGroup.getEndRes()
+ ? av.getAlignment().getSeqrep().getCharAt(position)
+ : (currentGroup.getSeqrep() != null
+ ? currentGroup.getSeqrep().getCharAt(position)
+ : av.getAlignment().getSeqrep()
+ .getCharAt(position)))
: (currentGroup != null && currentGroup.getConsensus() != null
&& position >= currentGroup.getStartRes()
- && position <= currentGroup.getEndRes() && currentGroup
- .getConsensus().annotations.length > position) ? currentGroup
- .getConsensus().annotations[position].displayCharacter
- .charAt(0)
- : av.getAlignmentConsensusAnnotation().annotations[position].displayCharacter
- .charAt(0);
+ && position <= currentGroup.getEndRes()
+ && currentGroup
+ .getConsensus().annotations.length > position)
+ ? currentGroup
+ .getConsensus().annotations[position].displayCharacter
+ .charAt(0)
+ : av.getAlignmentConsensusAnnotation().annotations[position].displayCharacter
+ .charAt(0);
if (!jalview.util.Comparison.isGap(conschar)
- && (sequenceChar == conschar || sequenceChar + CHAR_TO_UPPER == conschar))
+ && (sequenceChar == conschar
+ || sequenceChar + CHAR_TO_UPPER == conschar))
{
sequenceChar = conservedChar;
}
int pady = avCharHeight / 5;
int charOffset = 0;
graphics.setColor(Color.black);
- graphics.fillRect(x1, y1, avCharWidth * (end - start + 1), avCharHeight);
+ graphics.fillRect(x1, y1, avCharWidth * (end - start + 1),
+ avCharHeight);
graphics.setColor(Color.white);
char s = '~';
}
charOffset = (avCharWidth - fm.charWidth(s)) / 2;
- graphics.drawString(String.valueOf(s), charOffset + x1
- + avCharWidth * (i - start), y1 + avCharHeight - pady);
+ graphics.drawString(String.valueOf(s),
+ charOffset + x1 + avCharWidth * (i - start),
+ y1 + avCharHeight - pady);
}
}
}