@Override
public void paintComponent(Graphics g)
{
-
if (av.getAlignPanel().getHoldRepaint())
{
return;
* Using the current font, determine fields labelWidthEast and labelWidthWest,
* and return the number of residues that can fill the remaining width
*
- * @param width
+ * @param w
* the width in pixels (possibly including scales)
*
* @return the visible width in residues, after allowing for East or West
* scales (if shown)
*
*/
- public int getWrappedCanvasWidth(int width)
+ public int getWrappedCanvasWidth(int w)
{
int charWidth = av.getCharWidth();
labelWidthWest = av.getScaleLeftWrapped() ? labelWidth : 0;
- return (width - labelWidthEast - labelWidthWest) / charWidth;
+ return (w - labelWidthEast - labelWidthWest) / charWidth;
}
/**