* rectangles equals null, do nothing.
*
*/
public void paint(final Graphics g, final int p0, final int p1,
final Shape shape, final JTextComponent jtc) {
TextUI textUI = jtc.getUI();
if (textUI == null) {
return;
}
int start = Math.min(p0, p1);
int end = Math.max(p0, p1);
Rectangle startRect = null;
Rectangle endRect = null;
Rectangle shapeBounds = shape.getBounds();
try {
startRect = textUI.modelToView(jtc, start,
Position.Bias.Forward);
endRect = textUI.modelToView(jtc, end, Position.Bias.Backward);
} catch (final BadLocationException e) {
}
if (startRect == null || endRect == null) {
return;