/*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
charHeight = av.getCharHeight();
charWidth = av.getCharWidth();
}
+
/**
* DOCUMENT ME!
*
g.drawLine(((i - startx - 1) * charWidth) + (charWidth / 2),
(ypos + 2) - (charHeight / 2), ((i - startx - 1) * charWidth)
- + (charWidth / 2),
- ypos - 2);
+ + (charWidth / 2), ypos - 2);
}
}
continue;
}
- gg.fillPolygon(new int[]
- { res * charWidth - charHeight / 4,
- res * charWidth + charHeight / 4, res * charWidth },
- new int[]
- { ypos - (charHeight / 2), ypos - (charHeight / 2),
- ypos - (charHeight / 2) + 8 }, 3);
+ gg.fillPolygon(
+ new int[] { res * charWidth - charHeight / 4,
+ res * charWidth + charHeight / 4, res * charWidth },
+ new int[] { ypos - (charHeight / 2),
+ ypos - (charHeight / 2), ypos - (charHeight / 2) + 8 },
+ 3);
}
}
annotations = new AnnotationPanel(av);
}
- annotations.renderer.drawComponent(annotations, av, g,
- -1, startRes, endx + 1);
+ annotations.renderer.drawComponent(annotations, av, g, -1,
+ startRes, endx + 1);
g.translate(0, -cHeight - ypos - 3);
}
g.setClip(clip);
* DOCUMENT ME!
*/
public void drawPanel(Graphics g1, int startRes, int endRes,
- int startSeq,
- int endSeq, int offset)
+ int startSeq, int endSeq, int offset)
{
updateViewport();
if (!av.hasHiddenColumns())
// int startRes, int endRes, int startSeq, int endSeq, int x, int y,
// int x1, int x2, int y1, int y2, int startx, int starty,
private void draw(Graphics g, int startRes, int endRes, int startSeq,
- int endSeq,
- int offset)
+ int endSeq, int offset)
{
g.setFont(av.getFont());
sr.prepare(g, av.isRenderGaps());
if (group == av.getSelectionGroup())
{
g.setStroke(new BasicStroke(1, BasicStroke.CAP_BUTT,
- BasicStroke.JOIN_ROUND, 3f, new float[]
- { 5f, 3f }, 0f));
+ BasicStroke.JOIN_ROUND, 3f, new float[] { 5f, 3f },
+ 0f));
g.setColor(Color.RED);
}
else
break;
}
- group = av.getAlignment().getGroups()
- .get(groupIndex);
+ group = av.getAlignment().getGroups().get(groupIndex);
} while (groupIndex < av.getAlignment().getGroups().size());