|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.text.LayeredHighlighter
javax.swing.text.DefaultHighlighter
public class DefaultHighlighter
The default highlight for Swing text components. It highlights text by filling the background with a rectangle.
| Nested Class Summary | |
|---|---|
static class |
DefaultHighlighter.DefaultHighlightPainter
|
| Nested classes/interfaces inherited from class javax.swing.text.LayeredHighlighter |
|---|
LayeredHighlighter.LayerPainter |
| Nested classes/interfaces inherited from interface javax.swing.text.Highlighter |
|---|
Highlighter.Highlight, Highlighter.HighlightPainter |
| Field Summary | |
|---|---|
static LayeredHighlighter.LayerPainter |
DefaultPainter
|
| Constructor Summary | |
|---|---|
DefaultHighlighter()
|
|
| Method Summary | |
|---|---|
Object |
addHighlight(int p0,
int p1,
Highlighter.HighlightPainter painter)
|
void |
changeHighlight(Object tag,
int n0,
int n1)
|
void |
deinstall(JTextComponent c)
|
boolean |
getDrawsLayeredHighlights()
|
Highlighter.Highlight[] |
getHighlights()
|
void |
install(JTextComponent c)
|
void |
paint(Graphics g)
|
void |
paintLayeredHighlights(Graphics g,
int p0,
int p1,
Shape viewBounds,
JTextComponent editor,
View view)
|
void |
removeAllHighlights()
|
void |
removeHighlight(Object tag)
|
void |
setDrawsLayeredHighlights(boolean newValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final LayeredHighlighter.LayerPainter DefaultPainter
| Constructor Detail |
|---|
public DefaultHighlighter()
| Method Detail |
|---|
public boolean getDrawsLayeredHighlights()
public void setDrawsLayeredHighlights(boolean newValue)
public void install(JTextComponent c)
public void deinstall(JTextComponent c)
public Object addHighlight(int p0,
int p1,
Highlighter.HighlightPainter painter)
throws BadLocationException
BadLocationExceptionpublic void removeHighlight(Object tag)
public void removeAllHighlights()
public Highlighter.Highlight[] getHighlights()
public void changeHighlight(Object tag,
int n0,
int n1)
throws BadLocationException
BadLocationException
public void paintLayeredHighlights(Graphics g,
int p0,
int p1,
Shape viewBounds,
JTextComponent editor,
View view)
paintLayeredHighlights in class LayeredHighlighterpublic void paint(Graphics g)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||