Color getColorForScore(int column);
+ /**
+ * return colour representing contacts from i through to j for this site
+ *
+ * @param i
+ * @param j
+ * @return
+ */
+ Color getColorForRange(int i, int j);
/**
* get a value representing contact at column for this site
return jalview.util.ColorUtils.getGraduatedColour(Math.abs(column-p), 0, Color.white, width, Color.magenta);
}
@Override
+ public Color getColorForRange(int i, int j)
+ {
+ return jalview.util.ColorUtils.getGraduatedColour(
+ Math.abs(j + i - 2 * p) / 2, 0, Color.white, width,
+ Color.magenta);
+ }
+
+ @Override
public int getColumnWidth()
{
return 1;