/* */ public void paint(Graphics paramGraphics, Shape paramShape) /* */ { /* 579 */ Rectangle localRectangle = (Rectangle) paramShape; /* 580 */ int i = localRectangle.y + WrappedPlainView.this.metrics.getAscent(); /* 581 */ int j = localRectangle.x; /* */ /* 583 */ JTextComponent localJTextComponent = (JTextComponent) getContainer(); /* 584 */ Highlighter localHighlighter = localJTextComponent.getHighlighter(); /* 585 */ Object localObject = (localHighlighter instanceof LayeredHighlighter) ? (LayeredHighlighter) localHighlighter : null; /* */ /* 588 */ int k = getStartOffset(); /* 589 */ int m = getEndOffset(); /* 590 */ int n = k; /* 591 */ int[] arrayOfInt = getLineEnds(); /* 592 */ for (int i1 = 0; i1 < this.lineCount; i1++) { /* 593 */ int i2 = arrayOfInt == null ? m : k + arrayOfInt[i1]; /* */ /* 595 */ if (localObject != null) { /* 596 */ int i3 = i2 == m ? i2 - 1 : i2; /* */ /* 599 */ localObject.paintLayeredHighlights( paramGraphics, n, i3, paramShape, localJTextComponent, this); /* */ } /* 601 */ WrappedPlainView.this.drawLine(n, i2, paramGraphics, j, i); /* */ /* 603 */ n = i2; /* 604 */ i += WrappedPlainView.this.metrics.getHeight(); /* */ } /* */ }
/* */ public void paint(Graphics paramGraphics, Shape paramShape) /* */ { /* 356 */ Rectangle localRectangle = (Rectangle) paramShape; /* 357 */ this.tabBase = localRectangle.x; /* 358 */ JTextComponent localJTextComponent = (JTextComponent) getContainer(); /* 359 */ this.sel0 = localJTextComponent.getSelectionStart(); /* 360 */ this.sel1 = localJTextComponent.getSelectionEnd(); /* 361 */ this.unselected = (localJTextComponent.isEnabled() ? localJTextComponent.getForeground() : localJTextComponent.getDisabledTextColor()); /* */ /* 363 */ Caret localCaret = localJTextComponent.getCaret(); /* 364 */ this.selected = ((localCaret.isSelectionVisible()) && (localJTextComponent.getHighlighter() != null) ? localJTextComponent.getSelectedTextColor() : this.unselected); /* */ /* 366 */ paramGraphics.setFont(localJTextComponent.getFont()); /* */ /* 369 */ super.paint(paramGraphics, paramShape); /* */ }