private OverviewResColourFinder resColFinder;
public OverviewRenderer(FeatureRenderer fr, OverviewDimensions od,
- AlignmentI alignment,
- ResidueShaderI resshader, OverviewResColourFinder colFinder)
+ AlignmentI alignment, ResidueShaderI resshader,
+ OverviewResColourFinder colFinder)
{
finder = new FeatureColourFinder(fr);
resColFinder = colFinder;
{
break;
}
-
+
// get details of this alignment row
SequenceI seq = rows.getSequence(alignmentRow);
// calculate where this row extends to in pixels
int endRow = Math.min(Math.round((seqIndex + 1) * pixelsPerSeq) - 1,
miniMe.getHeight() - 1);
-
+
int colIndex = 0;
int pixelCol = 0;
for (int alignmentCol : cols)
{
break;
}
-
+
// calculate where this column extends to in pixels
int endCol = Math.min(Math.round((colIndex + 1) * pixelsPerCol) - 1,
miniMe.getWidth() - 1);
-
+
// don't do expensive colour determination if we're not going to use it
// NB this is important to avoid performance issues in the overview
// panel
{
rgbcolor = getColumnColourFromSequence(allGroups, seq,
alignmentCol);
-
+
// fill in the appropriate number of pixels
for (int row = pixelRow; row <= endRow; ++row)
{
* column position to get colour for
* @return colour of sequence at this position, as RGB
*/
- int getColumnColourFromSequence(SequenceGroup[] allGroups,
- SequenceI seq, int lastcol)
+ int getColumnColourFromSequence(SequenceGroup[] allGroups, SequenceI seq,
+ int lastcol)
{
Color color = resColFinder.gapColour;