git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1854 two more rules, readme notes
[jalview.git]
/
src
/
jalview
/
gui
/
IdCanvas.java
diff --git
a/src/jalview/gui/IdCanvas.java
b/src/jalview/gui/IdCanvas.java
index
fe42e1e
..
37be8bc
100755
(executable)
--- a/
src/jalview/gui/IdCanvas.java
+++ b/
src/jalview/gui/IdCanvas.java
@@
-98,8
+98,7
@@
public class IdCanvas extends JPanel
* DOCUMENT ME!
*/
public void drawIdString(Graphics2D gg, boolean hiddenRows, SequenceI s,
* DOCUMENT ME!
*/
public void drawIdString(Graphics2D gg, boolean hiddenRows, SequenceI s,
- int i, int starty,
- int ypos)
+ int i, int starty, int ypos)
{
int xPos = 0;
int panelWidth = getWidth();
{
int xPos = 0;
int panelWidth = getWidth();
@@
-205,6
+204,7
@@
public class IdCanvas extends JPanel
* @param g
* DOCUMENT ME!
*/
* @param g
* DOCUMENT ME!
*/
+ @Override
public void paintComponent(Graphics g)
{
g.setColor(Color.white);
public void paintComponent(Graphics g)
{
g.setColor(Color.white);
@@
-453,11
+453,9
@@
public class IdCanvas extends JPanel
if (below)
{
gg.fillPolygon(
if (below)
{
gg.fillPolygon(
- new int[]
- { getWidth() - av.getCharHeight(),
- getWidth() - av.getCharHeight(),
- getWidth() }, new int[]
- {
+ new int[] { getWidth() - av.getCharHeight(),
+ getWidth() - av.getCharHeight(), getWidth() },
+ new int[] {
(i - starty) * av.getCharHeight() + yoffset,
(i - starty) * av.getCharHeight() + yoffset
+ av.getCharHeight() / 4,
(i - starty) * av.getCharHeight() + yoffset,
(i - starty) * av.getCharHeight() + yoffset
+ av.getCharHeight() / 4,
@@
-466,11
+464,9
@@
public class IdCanvas extends JPanel
if (above)
{
gg.fillPolygon(
if (above)
{
gg.fillPolygon(
- new int[]
- { getWidth() - av.getCharHeight(),
- getWidth() - av.getCharHeight(),
- getWidth() }, new int[]
- {
+ new int[] { getWidth() - av.getCharHeight(),
+ getWidth() - av.getCharHeight(), getWidth() },
+ new int[] {
(i - starty + 1) * av.getCharHeight() + yoffset,
(i - starty + 1) * av.getCharHeight() + yoffset
- av.getCharHeight() / 4,
(i - starty + 1) * av.getCharHeight() + yoffset,
(i - starty + 1) * av.getCharHeight() + yoffset
- av.getCharHeight() / 4,
@@
-484,7
+480,7
@@
public class IdCanvas extends JPanel
Font bold = new Font(av.getFont().getName(), Font.BOLD, av.getFont()
.getSize());
Font bold = new Font(av.getFont().getName(), Font.BOLD, av.getFont()
.getSize());
- if (av.isHiddenRepSequence(seq))
+ if (av.isReferenceSeq(seq) || av.isHiddenRepSequence(seq))
{
gg.setFont(bold);
}
{
gg.setFont(bold);
}