public void repaintModel(int top,int bottom){
  if (editorPane == null || imgBuffer == null) {
    return;
  }
  Insets insets=getInsets();
  int myHeight=Math.max(getHeight() - insets.top - insets.bottom- frw * 2,1);
  if (prefViewHeight > myHeight) {
    int ptop=top * myHeight / prefViewHeight;
    int pbottom=(bottom * myHeight + prefViewHeight - 1) / prefViewHeight;
    enqueueRepaint(ptop,pbottom);
  }
 else {
    enqueueRepaint(top,bottom);
  }
}

public void repaintModel ( int top , int bottom ) { if ( editorPane == null || imgBuffer == null ) { return ; } Insets insets = getInsets ( ) ; int myHeight = Math . max ( getHeight ( ) - insets . top - insets . bottom - frw * 2 , 1 ) ; if ( prefViewHeight > myHeight ) { int ptop = top * myHeight / prefViewHeight ; int pbottom = ( bottom * myHeight + prefViewHeight - 1 ) / prefViewHeight ; enqueueRepaint ( ptop , pbottom ) ; } else { enqueueRepaint ( top , bottom ) ; } }
repaint model co - ordinates . the given lines will be translated to the naviview component ' s co - ordinate space .
