git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bec8628
)
GRPAH_HEIGHT variable
author
amwaterhouse
<Andrew Waterhouse>
Thu, 7 Apr 2005 13:17:56 +0000
(13:17 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 7 Apr 2005 13:17:56 +0000
(13:17 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
f14b199
..
48f9c20
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-31,6
+31,8
@@
public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio
\r
boolean fastPaint = false;
\r
\r
\r
boolean fastPaint = false;
\r
\r
+ public static int GRAPH_HEIGHT = 40;
\r
+
\r
\r
\r
public AnnotationPanel(AlignmentPanel ap)
\r
\r
\r
public AnnotationPanel(AlignmentPanel ap)
\r
@@
-70,7
+72,7
@@
public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio
aa[i].height += 16;
\r
\r
if (aa[i].isGraph)
\r
aa[i].height += 16;
\r
\r
if (aa[i].isGraph)
\r
- aa[i].height += 50;
\r
+ aa[i].height += GRAPH_HEIGHT;
\r
\r
if(aa[i].height==0)
\r
aa[i].height = 20;
\r
\r
if(aa[i].height==0)
\r
aa[i].height = 20;
\r
@@
-497,7
+499,7
@@
public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio
if (validRes && row.isGraph)
\r
{
\r
g.setColor(new Color(0,0,180));
\r
if (validRes && row.isGraph)
\r
{
\r
g.setColor(new Color(0,0,180));
\r
- int height = (int)((row.annotations[j].value / row.graphMax)*50);
\r
+ int height = (int)((row.annotations[j].value / row.graphMax)*GRAPH_HEIGHT);
\r
\r
if(row.windowLength>1)
\r
{
\r
\r
if(row.windowLength>1)
\r
{
\r
@@
-511,7
+513,7
@@
public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio
}
\r
\r
total/=row.windowLength;
\r
}
\r
\r
total/=row.windowLength;
\r
- height = (int)( (total / row.graphMax) *50);
\r
+ height = (int)( (total / row.graphMax) *GRAPH_HEIGHT);
\r
\r
}
\r
\r
\r
}
\r
\r
@@
-565,7
+567,7
@@
public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio
for(int j=0; j<aa.annotations.length; j++)
\r
{
\r
g.setColor(new Color(0, 0, 180));
\r
for(int j=0; j<aa.annotations.length; j++)
\r
{
\r
g.setColor(new Color(0, 0, 180));
\r
- int height = (int) ( (aa.annotations[j].value / aa.graphMax) * 50);
\r
+ int height = (int) ( (aa.annotations[j].value / aa.graphMax) * GRAPH_HEIGHT );
\r
g.fillRect(x, y - height, av.charWidth, height);
\r
x+=av.charWidth;
\r
}
\r
g.fillRect(x, y - height, av.charWidth, height);
\r
x+=av.charWidth;
\r
}
\r