protected void paintMatchedBracket(Graphics g){
  RSyntaxTextArea rsta=(RSyntaxTextArea)textArea;
  if (rsta.isBracketMatchingEnabled()) {
    Rectangle match=rsta.match;
    if (match != null) {
      if (rsta.getAnimateBracketMatching()) {
        g.setColor(rsta.getMatchedBracketBGColor());
        g.fillRoundRect(match.x,match.y,match.width,match.height - 1,5,5);
        g.setColor(rsta.getMatchedBracketBorderColor());
        g.drawRoundRect(match.x,match.y,match.width,match.height - 1,5,5);
      }
 else {
        g.setColor(rsta.getMatchedBracketBGColor());
        g.fillRect(match.x,match.y,match.width,match.height - 1);
        g.setColor(rsta.getMatchedBracketBorderColor());
        g.drawRect(match.x,match.y,match.width,match.height - 1);
      }
    }
  }
}

protected void paintMatchedBracket ( Graphics g ) { RSyntaxTextArea rsta = ( RSyntaxTextArea ) textArea ; if ( rsta . isBracketMatchingEnabled ( ) ) { Rectangle match = rsta . match ; if ( match != null ) { if ( rsta . getAnimateBracketMatching ( ) ) { g . setColor ( rsta . getMatchedBracketBGColor ( ) ) ; g . fillRoundRect ( match . x , match . y , match . width , match . height - 1 , 5 , 5 ) ; g . setColor ( rsta . getMatchedBracketBorderColor ( ) ) ; g . drawRoundRect ( match . x , match . y , match . width , match . height - 1 , 5 , 5 ) ; } else { g . setColor ( rsta . getMatchedBracketBGColor ( ) ) ; g . fillRect ( match . x , match . y , match . width , match . height - 1 ) ; g . setColor ( rsta . getMatchedBracketBorderColor ( ) ) ; g . drawRect ( match . x , match . y , match . width , match . height - 1 ) ; } } } }
paints the " matched bracket " , if any .
