package jalview.datamodel;
-
public interface ContactListI extends ContactListProviderI
{
}
@Override
+ public int getPosition()
+ {
+ return clist.getPosition();
+ }
+
+ @Override
public double getContactAt(int column)
{
return clist.getContactAt(column);
{
/**
+ *
+ * @return position index for this contact List (usually sequence position or
+ * alignment column)
+ */
+ int getPosition();
+
+ /**
* dimension of list where getContactAt(column<getContactHeight()) may return
* a value
*
int p = column;
@Override
+ public int getPosition()
+ {
+ return p;
+ }
+
+ @Override
public int getContactHeight()
{
return width;
{
return width;
}
+
@Override
public ContactListI getContactList(final int column)
{
}
@Override
+ public int getPosition()
+ {
+ return p;
+ }
+
+ @Override
public double getContactAt(int column)
{
return Math.abs(column - p);
ContactGeometry.contactInterval ci = cgeom.mapFor(rowAndOffset,
rowAndOffset);
ContactRange cr = clist.getRangeFor(ci.cStart, ci.cEnd);
- tooltip = "Contact from " + ci.cStart + " to " + ci.cEnd
- + "<br/>Mean:" + cr.getMean();
+ tooltip = "Contact from " + clist.getPosition() + ", [" + ci.cStart
+ + " - " + ci.cEnd + "]" + "<br/>Mean:" + cr.getMean();
// ap.getStructureSelectionManager().mouseOverSequence(ann.sequenceRef,
// new int[] {column, ci.cStart,ci.cEnd}, -1, null)
return new ContactListImpl(new ContactListProviderI()
{
@Override
+ public int getPosition()
+ {
+ return _column;
+ }
+
+ @Override
public int getContactHeight()
{
return maxcol - 1;
/**
* standard asserts for ContactMatrixI
*/
- public static void testContactMatrixI(ContactMatrixI cm, boolean symmetric)
+ public static void testContactMatrixI(ContactMatrixI cm,
+ boolean symmetric)
{
// assume contact matrix is square for text
ContactListI clist = cm.getContactList(1);
double[] val = { 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7 };
@Override
+ public int getPosition()
+ {
+ return 0;
+ }
+
+ @Override
public int getContactHeight()
{
return val.length;