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)
30 public ContactListI getContactList(final int column)
32 if (column < 0 || column >= width)
36 return new ContactListImpl(new ContactListProviderI()
42 // public Color getColorForScore(int column)
44 // return jalview.util.ColorUtils.getGraduatedColour(Math.abs(column-p),
45 // 0, Color.white, width, Color.magenta);
48 // public Color getColorForRange(int from_column, int to_column)
50 // return jalview.util.ColorUtils.getGraduatedColour(
51 // Math.abs(to_column + from_column - 2 * p) / 2, 0, Color.white, width,
56 public int getContactHeight()
63 public double getContactAt(int column)
65 return Math.abs(column - p);