X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fviewmodel%2FPaSiMapModel.java;h=1f5e2dc4d11ec4de9e8424f134135ef43ddbe00d;hb=4ae5956e606a045ea9da778f4829cb6d2a157180;hp=c9545a88cc7b5b399341ec09790d1f4e409f08db;hpb=d5bcf8b86c585efd80a6658bd56b656373c34295;p=jalview.git diff --git a/src/jalview/viewmodel/PaSiMapModel.java b/src/jalview/viewmodel/PaSiMapModel.java index c9545a8..1f5e2dc 100644 --- a/src/jalview/viewmodel/PaSiMapModel.java +++ b/src/jalview/viewmodel/PaSiMapModel.java @@ -101,14 +101,19 @@ public class PaSiMapModel ii++; } + int width = pasimap.getWidth(); int height = pasimap.getHeight(); // top = pasimap.getM().height() - 1; - top = height - 1; + //&! + //top = height - 1; + top = height; points = new Vector<>(); - Point[] scores = pasimap.getComponents(top - 1, top - 2, top - 3, 100); + //&! + //Point[] scores = pasimap.getComponents(top - 1, top - 2, top - 3, 100); + Point[] scores = pasimap.getComponents(width - 1, width - 2, width - 3, 1); - for (int i = 0; i < height; i++) + for (int i = 0; i < top; i++) { SequencePoint sp = new SequencePoint(seqs[i], scores[i]); points.add(sp); @@ -158,9 +163,11 @@ public class PaSiMapModel public void updateRcView(int dim1, int dim2, int dim3) { // note: actual indices for components are dim1-1, etc (patch for JAL-1123) - Point[] scores = pasimap.getComponents(dim1 - 1, dim2 - 1, dim3 - 1, 100); + //&! + //Point[] scores = pasimap.getComponents(dim1 - 1, dim2 - 1, dim3 - 1, 100); + Point[] scores = pasimap.getComponents(dim1 - 1, dim2 - 1, dim3 - 1, 1); - for (int i = 0; i < pasimap.getHeight(); i++) + for (int i = 0; i < pasimap.getWidth(); i++) { points.get(i).coord = scores[i]; }