{
continue;
}
- // draw box background, possibly with sequence label.
+
sr.drawSequence(nextSeq, av.alignment.findAllGroups(nextSeq),
- startRes, endRes, offset + ((i - startSeq) * av.charHeight), true, !av.showSequenceFeatures);
-
+ startRes, endRes, offset + ((i - startSeq) * av.charHeight));
+
if (av.showSequenceFeatures)
{
fr.drawSequence(g, nextSeq, startRes, endRes, offset
+ ((i - startSeq) * av.charHeight));
- // draw sequence label
- sr.drawSequence(nextSeq, av.alignment.findAllGroups(nextSeq),
- startRes, endRes, offset + ((i - startSeq) * av.charHeight), false, true);
}
// / Highlight search Results once all sequences have been drawn
return resBoxColour;
}
- /**
- * draw coloured sequence to the current graphics cursor
- * @param seq
- * @param sg
- * @param start
- * @param end
- * @param y1
- * @param drawBox - draw background
- * @param drawText - draw text (if shading style permits)
- */
-
public void drawSequence(SequenceI seq, SequenceGroup[] sg, int start,
- int end, int y1, boolean drawBox, boolean drawText)
+ int end, int y1)
{
if (seq == null)
{
}
allGroups = sg;
- if (drawBox) {
- drawBoxes(seq, start, end, y1);
- }
- if (av.validCharWidth && drawText)
+ drawBoxes(seq, start, end, y1);
+
+ if (av.validCharWidth)
{
drawText(seq, start, end, y1);
}
// empty
continue;
}
- // draw box background, possibly with sequence label.
sr.drawSequence(nextSeq, av.alignment.findAllGroups(nextSeq),
- startRes, endRes, offset + ((i - startSeq) * av.charHeight), true, !av.showSequenceFeatures);
-
+ startRes, endRes, offset + ((i - startSeq) * av.charHeight));
+
if (av.showSequenceFeatures)
{
fr.drawSequence(g, nextSeq, startRes, endRes, offset
+ ((i - startSeq) * av.charHeight));
- // draw sequence label
- sr.drawSequence(nextSeq, av.alignment.findAllGroups(nextSeq),
- startRes, endRes, offset + ((i - startSeq) * av.charHeight), false, true);
}
// / Highlight search Results once all sequences have been drawn
}
/**
- * draw coloured sequence to the current graphics cursor
+ * DOCUMENT ME!
+ *
+ * @param g
+ * DOCUMENT ME!
* @param seq
+ * DOCUMENT ME!
* @param sg
+ * DOCUMENT ME!
* @param start
+ * DOCUMENT ME!
* @param end
+ * DOCUMENT ME!
+ * @param x1
+ * DOCUMENT ME!
* @param y1
- * @param drawBox - draw background
- * @param drawText - draw text (if shading style permits)
+ * DOCUMENT ME!
+ * @param width
+ * DOCUMENT ME!
+ * @param height
+ * DOCUMENT ME!
*/
public void drawSequence(SequenceI seq, SequenceGroup[] sg, int start,
- int end, int y1, boolean drawBox, boolean drawText)
+ int end, int y1)
{
allGroups = sg;
- if (drawBox) {
- drawBoxes(seq, start, end, y1);
- }
+ drawBoxes(seq, start, end, y1);
- if (av.validCharWidth && drawText)
+ if (av.validCharWidth)
{
drawText(seq, start, end, y1);
}