ContactGeometry lastXcgeom = new ContactGeometry(forFromX,
cma.graphHeight);
ContactGeometry.contactInterval lastXci = lastXcgeom
- .mapFor(rowIndex[1], rowIndex[1] + deltaY);
+ .mapFor(rowIndex[1], rowIndex[1] - deltaY);
+
ContactGeometry cXcgeom = new ContactGeometry(forToX,
cma.graphHeight);
ContactGeometry.contactInterval cXci = cXcgeom.mapFor(rowIndex[1],
- rowIndex[1] + deltaY);
+ rowIndex[1] - deltaY);
+
// mark rectangular region formed by drag
- System.err.println("Matrix Selection from last(" + lastXci.cStart
- + "," + lastXci.cEnd + ") to cur(" + cXci.cStart + ","
- + cXci.cEnd + ")");
+ System.err.println("Matrix Selection from last(" + fromXc + ",["
+ + lastXci.cStart + "," + lastXci.cEnd + "]) to cur(" + toXc
+ + ",[" + cXci.cStart + "," + cXci.cEnd + "])");
int fr, to;
fr = Math.min(lastXci.cStart, lastXci.cEnd);
to = Math.max(lastXci.cStart, lastXci.cEnd);
// also need a 'getMaxPosForRange(start,end)' to accurately render
Color col;
boolean rowsel = false;
- if (!colsel && columnSelection != null)
+ if (columnSelection != null)
{
if (_aa.sequenceRef == null)
{
col = getSelectedColorForRange(min, max, contacts, ci.cStart,
ci.cEnd);
+ if (colsel && rowsel)
+ {
+ col = new Color(col.getBlue(), col.getGreen(), col.getRed());
+ }
+ else
+ {
+ col = new Color(col.getBlue(), col.getBlue(), col.getBlue());
+ }
g.setColor(col);
}
else