+
+ protected void setBoxPosition(int startRes, int startSeq, int vpwidth,
+ int vpheight)
+ {
+ resetAlignmentDims();
+
+ // boxX, boxY is the x,y location equivalent to startRes, startSeq
+ boxX = Math.round((float) startRes * width / alwidth);
+ boxY = Math.round((float) startSeq * sequencesHeight / alheight);
+
+ // boxWidth is the width in residues translated to pixels
+ boxWidth = Math.round((float) vpwidth * width / alwidth);
+
+ // boxHeight is the height in sequences translated to pixels
+ boxHeight = Math.round((float) vpheight * sequencesHeight / alheight);
+ }