*/
public void setStartEndSeq(int start, int end)
{
- // System.out.println("ViewportRange setStartEndSeq " + start + " " + end);
+ System.out.println("ViewportRange setStartEndSeq " + start + " " + end);
int[] oldvalues = updateStartEndSeq(start, end);
int oldstartseq = oldvalues[0];
int oldendseq = oldvalues[1];
*/
private int[] updateStartEndSeq(int start, int end)
{
+ System.out.println("ViewportRange updateStartEndSeq " + start + " " + end);
int oldstartseq = this.startSeq;
int visibleHeight = getVisibleAlignmentHeight();
if (start > visibleHeight - 1)
assertEquals(al.getHeight(), 15);
ViewportRanges ranges = av.getRanges();
+ System.out.println(av.getRanges() + " just before setting end to 3");
ranges.setStartEndSeq(0, 3);
- System.out.println(ranges);
+ System.out.println(av.getRanges() + " just after setting end to 3");
av.setShowAnnotation(false);
av.setScaleAboveWrapped(true);
- System.out.println(ranges);
SeqCanvas testee = af.alignPanel.getSeqPanel().seqCanvas;
av.setWrapAlignment(true);
- System.out.println(ranges);
av.setFont(new Font("SansSerif", Font.PLAIN, 14), true);
int charHeight = av.getCharHeight();
int charWidth = av.getCharWidth();
- System.out.println(ranges);
// Windows h=19, w=11.
assertEquals(charHeight, !Platform.isWin() ? 17 : 19);
assertEquals(charWidth, !Platform.isWin() ? 12 : 11);
- System.out.println(ranges);
int canvasWidth = 400;
int canvasHeight = 300;
testee.calculateWrappedGeometry(canvasWidth, canvasHeight);
- System.out.println(ranges);
+ System.out.println(ranges + " just before assert");
assertEquals(ranges.getEndSeq(), 3); // unchanged
int repeatingHeight = (int) PA.getValue(testee,
"wrappedRepeatHeightPx");