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:
60cc481
)
JAL-4375 More consistent calculation for dashed threshold line
author
Ben Soares
<b.soares@dundee.ac.uk>
Wed, 31 Jan 2024 17:03:39 +0000
(17:03 +0000)
committer
Ben Soares
<b.soares@dundee.ac.uk>
Wed, 31 Jan 2024 17:03:39 +0000
(17:03 +0000)
src/jalview/renderer/AnnotationRenderer.java
patch
|
blob
|
history
diff --git
a/src/jalview/renderer/AnnotationRenderer.java
b/src/jalview/renderer/AnnotationRenderer.java
index
3b5d656
..
f733875
100644
(file)
--- a/
src/jalview/renderer/AnnotationRenderer.java
+++ b/
src/jalview/renderer/AnnotationRenderer.java
@@
-1484,8
+1484,8
@@
public class AnnotationRenderer
{
if (!dashedLineLookup.containsKey(charWidth))
{
- int power2 = charWidth >= 16 ? (int) (Math.log(charWidth) / log2) : 2;
- float width = ((float) charWidth) / ((float) Math.pow(2, power2 - 2));
+ int power2 = charWidth >= 8 ? (int) (Math.log(charWidth) / log2) : 2;
+ float width = ((float) charWidth) / ((float) Math.pow(2, power2 - 3));
float segment1 = width * 0.6f;
float segment2 = width - segment1;
dashedLineLookup.put(charWidth, new BasicStroke(1,