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
Merge branch 'develop' into releases/Release_2_10_2_Branch
[jalview.git]
/
src
/
jalview
/
renderer
/
OverviewRenderer.java
diff --git
a/src/jalview/renderer/OverviewRenderer.java
b/src/jalview/renderer/OverviewRenderer.java
index
46490cd
..
0f8cda6
100644
(file)
--- a/
src/jalview/renderer/OverviewRenderer.java
+++ b/
src/jalview/renderer/OverviewRenderer.java
@@
-104,8
+104,7
@@
public class OverviewRenderer
}
// calculate where this column extends to in pixels
}
// calculate where this column extends to in pixels
- int endCol = Math.min(
- Math.round((colIndex + 1) * pixelsPerCol) - 1,
+ int endCol = Math.min(Math.round((colIndex + 1) * pixelsPerCol) - 1,
miniMe.getWidth() - 1);
// don't do expensive colour determination if we're not going to use it
miniMe.getWidth() - 1);
// don't do expensive colour determination if we're not going to use it
@@
-194,8
+193,7
@@
public class OverviewRenderer
}
else
{
}
else
{
- int endCol = Math.min(
- Math.round((colIndex + 1) * pixelsPerCol) - 1,
+ int endCol = Math.min(Math.round((colIndex + 1) * pixelsPerCol) - 1,
miniMe.getWidth() - 1);
if (annotations[alignmentCol] != null)
miniMe.getWidth() - 1);
if (annotations[alignmentCol] != null)
@@
-209,7
+207,8
@@
public class OverviewRenderer
g.setColor(annotations[alignmentCol].colour);
}
g.setColor(annotations[alignmentCol].colour);
}
- height = (int) ((annotations[alignmentCol].value / anno.graphMax) * y);
+ height = (int) ((annotations[alignmentCol].value / anno.graphMax)
+ * y);
if (height > y)
{
height = y;
if (height > y)
{
height = y;