{
continue;
}
-
+ // draw box background, possibly with sequence label.
sr.drawSequence(nextSeq, av.alignment.findAllGroups(nextSeq),
- startRes, endRes, offset + ((i - startSeq) * av.charHeight));
-
+ startRes, endRes, offset + ((i - startSeq) * av.charHeight), true, !av.showSequenceFeatures);
+
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)
+ int end, int y1, boolean drawBox, boolean drawText)
{
if (seq == null)
{
}
allGroups = sg;
+ if (drawBox) {
+ drawBoxes(seq, start, end, y1);
+ }
- drawBoxes(seq, start, end, y1);
-
- if (av.validCharWidth)
+ if (av.validCharWidth && drawText)
{
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));
-
+ startRes, endRes, offset + ((i - startSeq) * av.charHeight), true, !av.showSequenceFeatures);
+
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
}
/**
- * DOCUMENT ME!
- *
- * @param g
- * DOCUMENT ME!
+ * draw coloured sequence to the current graphics cursor
* @param seq
- * DOCUMENT ME!
* @param sg
- * DOCUMENT ME!
* @param start
- * DOCUMENT ME!
* @param end
- * DOCUMENT ME!
- * @param x1
- * DOCUMENT ME!
* @param y1
- * DOCUMENT ME!
- * @param width
- * DOCUMENT ME!
- * @param height
- * DOCUMENT ME!
+ * @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)
+ int end, int y1, boolean drawBox, boolean drawText)
{
allGroups = sg;
- drawBoxes(seq, start, end, y1);
+ if (drawBox) {
+ drawBoxes(seq, start, end, y1);
+ }
- if (av.validCharWidth)
+ if (av.validCharWidth && drawText)
{
drawText(seq, start, end, y1);
}