1 package jalview.datamodel;
4 * Dummy contact matrix based on sequence distance
9 public class SeqDistanceContactMatrix implements ContactMatrixI
11 private int width = 0;
13 public SeqDistanceContactMatrix(int width)
31 public ContactListI getContactList(final int column)
33 if (column < 0 || column >= width)
37 return new ContactListImpl(new ContactListProviderI()
43 // public Color getColorForScore(int column)
45 // return jalview.util.ColorUtils.getGraduatedColour(Math.abs(column-p),
46 // 0, Color.white, width, Color.magenta);
49 // public Color getColorForRange(int from_column, int to_column)
51 // return jalview.util.ColorUtils.getGraduatedColour(
52 // Math.abs(to_column + from_column - 2 * p) / 2, 0, Color.white, width,
57 public int getContactHeight()
64 public int getPosition()
70 public double getContactAt(int column)
72 return Math.abs(column - p);
78 public boolean hasReferenceSeq()
80 // TODO Auto-generated method stub
85 public SequenceI getReferenceSeq()
87 // TODO Auto-generated method stub
92 public String getAnnotDescr()
94 return "Sequence distance matrix";
98 public String getAnnotLabel()
100 return "Sequence Distance";