public void paint(Graphics g){
  if (handles != null && isHandlesVisible()) {
    for (int i=0; i < handles.length; i++) {
      if (isHandleVisible(i)) {
        g.setColor(getHandleFillColor(i));
        g.fillRect(handles[i].x,handles[i].y,handles[i].width,handles[i].height);
        g.setColor(getHandleBorderColor(i));
        g.drawRect(handles[i].x,handles[i].y,handles[i].width - 1,handles[i].height - 1);
      }
    }
  }
}

public void paint ( Graphics g ) { if ( handles != null && isHandlesVisible ( ) ) { for ( int i = 0 ; i < handles . length ; i ++ ) { if ( isHandleVisible ( i ) ) { g . setColor ( getHandleFillColor ( i ) ) ; g . fillRect ( handles [ i ] . x , handles [ i ] . y , handles [ i ] . width , handles [ i ] . height ) ; g . setColor ( getHandleBorderColor ( i ) ) ; g . drawRect ( handles [ i ] . x , handles [ i ] . y , handles [ i ] . width - 1 , handles [ i ] . height - 1 ) ; } } } }
paints the visible handles of this handler .
