javax.swing.text

Class DefaultHighlighter

public class DefaultHighlighter extends LayeredHighlighter

The default highlight for Swing text components. It highlights text by filling the background with a rectangle.
Nested Class Summary
static classDefaultHighlighter.DefaultHighlightPainter
Field Summary
static LayeredHighlighter.LayerPainterDefaultPainter
Constructor Summary
DefaultHighlighter()
Method Summary
ObjectaddHighlight(int p0, int p1, Highlighter.HighlightPainter painter)
voidchangeHighlight(Object tag, int n0, int n1)
voiddeinstall(JTextComponent c)
booleangetDrawsLayeredHighlights()
Highlighter.Highlight[]getHighlights()
voidinstall(JTextComponent c)
voidpaint(Graphics g)
voidpaintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
voidremoveAllHighlights()
voidremoveHighlight(Object tag)
voidsetDrawsLayeredHighlights(boolean newValue)

Field Detail

DefaultPainter

public static final LayeredHighlighter.LayerPainter DefaultPainter

UNKNOWN: final as of 1.4

Constructor Detail

DefaultHighlighter

public DefaultHighlighter()

Method Detail

addHighlight

public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter painter)

changeHighlight

public void changeHighlight(Object tag, int n0, int n1)

deinstall

public void deinstall(JTextComponent c)

getDrawsLayeredHighlights

public boolean getDrawsLayeredHighlights()

getHighlights

public Highlighter.Highlight[] getHighlights()

install

public void install(JTextComponent c)

paint

public void paint(Graphics g)

paintLayeredHighlights

public void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)

removeAllHighlights

public void removeAllHighlights()

removeHighlight

public void removeHighlight(Object tag)

setDrawsLayeredHighlights

public void setDrawsLayeredHighlights(boolean newValue)