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-3010 options to hide / apply changes to ontology sub-types
[jalview.git]
/
src
/
jalview
/
renderer
/
AnnotationRenderer.java
diff --git
a/src/jalview/renderer/AnnotationRenderer.java
b/src/jalview/renderer/AnnotationRenderer.java
index
683ca78
..
adca17e
100644
(file)
--- a/
src/jalview/renderer/AnnotationRenderer.java
+++ b/
src/jalview/renderer/AnnotationRenderer.java
@@
-162,7
+162,8
@@
public class AnnotationRenderer
boolean validRes, boolean validEnd)
{
g.setColor(STEM_COLOUR);
boolean validRes, boolean validEnd)
{
g.setColor(STEM_COLOUR);
- int sCol = (lastSSX / charWidth) + startRes;
+ int sCol = (lastSSX / charWidth)
+ + hiddenColumns.visibleToAbsoluteColumn(startRes);
int x1 = lastSSX;
int x2 = (x * charWidth);
int x1 = lastSSX;
int x2 = (x * charWidth);
@@
-228,7
+229,8
@@
public class AnnotationRenderer
// System.out.println(nonCanColor);
g.setColor(nonCanColor);
// System.out.println(nonCanColor);
g.setColor(nonCanColor);
- int sCol = (lastSSX / charWidth) + startRes;
+ int sCol = (lastSSX / charWidth)
+ + hiddenColumns.visibleToAbsoluteColumn(startRes);
int x1 = lastSSX;
int x2 = (x * charWidth);
int x1 = lastSSX;
int x2 = (x * charWidth);
@@
-600,7
+602,7
@@
public class AnnotationRenderer
{
if (hasHiddenColumns)
{
{
if (hasHiddenColumns)
{
- column = hiddenColumns.adjustForHiddenColumns(startRes + x);
+ column = hiddenColumns.visibleToAbsoluteColumn(startRes + x);
if (column > row_annotations.length - 1)
{
break;
if (column > row_annotations.length - 1)
{
break;
@@
-1148,7
+1150,7
@@
public class AnnotationRenderer
g.setColor(HELIX_COLOUR);
int sCol = (lastSSX / charWidth)
g.setColor(HELIX_COLOUR);
int sCol = (lastSSX / charWidth)
- + hiddenColumns.adjustForHiddenColumns(startRes);
+ + hiddenColumns.visibleToAbsoluteColumn(startRes);
int x1 = lastSSX;
int x2 = (x * charWidth);
int x1 = lastSSX;
int x2 = (x * charWidth);
@@
-1248,7
+1250,7
@@
public class AnnotationRenderer
column = sRes + x;
if (hasHiddenColumns)
{
column = sRes + x;
if (hasHiddenColumns)
{
- column = hiddenColumns.adjustForHiddenColumns(column);
+ column = hiddenColumns.visibleToAbsoluteColumn(column);
}
if (column > aaMax)
}
if (column > aaMax)
@@
-1328,7
+1330,7
@@
public class AnnotationRenderer
column = sRes + x;
if (hasHiddenColumns)
{
column = sRes + x;
if (hasHiddenColumns)
{
- column = hiddenColumns.adjustForHiddenColumns(column);
+ column = hiddenColumns.visibleToAbsoluteColumn(column);
}
if (column > aaMax)
}
if (column > aaMax)