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:
2761121
)
dont color gaps in sequence features
author
amwaterhouse
<Andrew Waterhouse>
Tue, 8 Mar 2005 14:32:21 +0000
(14:32 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 8 Mar 2005 14:32:21 +0000
(14:32 +0000)
src/jalview/gui/FeatureRenderer.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureRenderer.java
b/src/jalview/gui/FeatureRenderer.java
index
59f446e
..
fc31fdf
100755
(executable)
--- a/
src/jalview/gui/FeatureRenderer.java
+++ b/
src/jalview/gui/FeatureRenderer.java
@@
-55,11
+55,15
@@
public class FeatureRenderer implements RendererI
{
\r
for (int i = fstart; i <= fend; i++)
\r
{
\r
+ char s = seq.getSequence().charAt(i);
\r
+ if( jalview.util.Comparison.isGap(s) )
\r
+ continue;
\r
+
\r
g.setColor(Color.blue);
\r
g.fillRect( (i-start) * width, y1, width, height);
\r
\r
g.setColor(Color.white);
\r
- char s = seq.getSequence().charAt(i);
\r
+
\r
FontMetrics fm = g.getFontMetrics();
\r
int charOffset = (width - fm.charWidth(s)) / 2;
\r
int pady = height / 5;
\r