{
if (ap != null)
{
- ap.repaint();
+ ap.paintAlignment(true);
}
Thread.sleep(200);
}
if (ap != null)
{
- ap.repaint();
+ ap.paintAlignment(true);
}
}
{
if (ap != null)
{
- ap.repaint();
+ ap.paintAlignment(true);
}
Thread.sleep(200);
if (ap != null)
{
- ap.repaint();
+ ap.paintAlignment(true);
}
}
}
public void hideAllSelectedSeqs()
{
- if (selectionGroup == null)
+ if (selectionGroup == null || selectionGroup.getSize()<1)
{
return;
}
return selection;
}
+ public int [][] getVisibleRegionBoundaries(int min, int max)
+ {
+ Vector regions = new Vector();
+ int start = min;
+ int end = max;
+
+ do
+ {
+ if (hasHiddenColumns)
+ {
+ if (start == 0)
+ {
+ start = colSel.adjustForHiddenColumns(start);
+ }
+
+ end = colSel.getHiddenBoundaryRight(start);
+ if (start == end)
+ {
+ end = max;
+ }
+ if (end > max)
+ {
+ end = max;
+ }
+ }
+
+ regions.addElement(new int[]
+ {start, end});
+
+ if (hasHiddenColumns)
+ {
+ start = colSel.adjustForHiddenColumns(end);
+ start = colSel.getHiddenBoundaryLeft(start) + 1;
+ }
+ }
+ while (end < max);
+
+ int[][] startEnd = new int[regions.size()][2];
+
+ regions.copyInto(startEnd);
+
+ return startEnd;
+
+ }
+
public boolean getShowHiddenMarkers()
{
return showHiddenMarkers;