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)
18 public ContactListI getContactList(final int column)
20 if (column < 0 || column >= width)
24 return new ContactListImpl(new ContactListProviderI()
30 // public Color getColorForScore(int column)
32 // return jalview.util.ColorUtils.getGraduatedColour(Math.abs(column-p),
33 // 0, Color.white, width, Color.magenta);
36 // public Color getColorForRange(int from_column, int to_column)
38 // return jalview.util.ColorUtils.getGraduatedColour(
39 // Math.abs(to_column + from_column - 2 * p) / 2, 0, Color.white, width,
44 public int getContactHeight()
51 public double getContactAt(int column)
53 return Math.abs(column - p);