< prev index next >

src/java.desktop/share/classes/javax/swing/text/DefaultHighlighter.java

Print this page

        

*** 329,339 **** safeDamageRange(doc.createPosition(a0), doc.createPosition(a1)); } /** * If true, highlights are drawn as the Views draw the text. That is ! * the Views will call into <code>paintLayeredHighlight</code> which * will result in a rectangle being drawn before the text is drawn * (if the offsets are in a highlighted region that is). For this to * work the painter supplied must be an instance of * LayeredHighlightPainter. * @param newValue the new value --- 329,339 ---- safeDamageRange(doc.createPosition(a0), doc.createPosition(a1)); } /** * If true, highlights are drawn as the Views draw the text. That is ! * the Views will call into {@code paintLayeredHighlight} which * will result in a rectangle being drawn before the text is drawn * (if the offsets are in a highlighted region that is). For this to * work the painter supplied must be an instance of * LayeredHighlightPainter. * @param newValue the new value
*** 374,384 **** * a solid color. */ public static class DefaultHighlightPainter extends LayeredHighlighter.LayerPainter { /** ! * Constructs a new highlight painter. If <code>c</code> is null, * the JTextComponent will be queried for its selection color. * * @param c the color for the highlight */ public DefaultHighlightPainter(Color c) { --- 374,384 ---- * a solid color. */ public static class DefaultHighlightPainter extends LayeredHighlighter.LayerPainter { /** ! * Constructs a new highlight painter. If {@code c} is null, * the JTextComponent will be queried for its selection color. * * @param c the color for the highlight */ public DefaultHighlightPainter(Color c) {
*** 584,598 **** int width; int height; } /** ! * This class invokes <code>mapper.damageRange</code> in * EventDispatchThread. The only one instance per Highlighter * is cretaed. When a number of ranges should be damaged * it collects them into queue and damages ! * them in consecutive order in <code>run</code> * call. */ class SafeDamager implements Runnable { private Vector<Position> p0 = new Vector<Position>(10); private Vector<Position> p1 = new Vector<Position>(10); --- 584,598 ---- int width; int height; } /** ! * This class invokes {@code mapper.damageRange} in * EventDispatchThread. The only one instance per Highlighter * is cretaed. When a number of ranges should be damaged * it collects them into queue and damages ! * them in consecutive order in {@code run} * call. */ class SafeDamager implements Runnable { private Vector<Position> p0 = new Vector<Position>(10); private Vector<Position> p1 = new Vector<Position>(10);
< prev index next >