Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Inner Class Summary | |
static | Highlighter.Highlight
|
static | Highlighter.HighlightPainter
Highlight renderer. |
Method Summary | |
java.lang.Object | addHighlight(int p0,
int p1,
Highlighter.HighlightPainter p)
Adds a highlight to the view. |
void | changeHighlight(java.lang.Object tag,
int p0,
int p1)
Changes the given highlight to span a different portion of the document. |
void | deinstall(JTextComponent c)
Called when the UI is being removed from the interface of a JTextComponent. |
Highlighter.Highlight[] | getHighlights()
Fetches the current list of highlights. |
void | install(JTextComponent c)
Called when the UI is being installed into the interface of a JTextComponent. |
void | paint(java.awt.Graphics g)
Renders the highlights. |
void | removeAllHighlights()
Removes all highlights this highlighter is responsible for. |
void | removeHighlight(java.lang.Object tag)
Removes a highlight from the view. |
Method Detail |
public void install(JTextComponent c)
c
- the JTextComponent editorpublic void deinstall(JTextComponent c)
c
- the JTextComponent editorpublic void paint(java.awt.Graphics g)
g
- the graphics context.public java.lang.Object addHighlight(int p0, int p1, Highlighter.HighlightPainter p) throws BadLocationException
p0
- the beginning of the range >= 0
p1
- the end of the range >= p0
p
- the painter to use for the actual highlightingpublic void removeHighlight(java.lang.Object tag)
tag
- which highlight to removepublic void removeAllHighlights()
public void changeHighlight(java.lang.Object tag, int p0, int p1) throws BadLocationException
tag
- which highlight to change
p0
- the beginning of the range >= 0
p1
- the end of the range >= p0public Highlighter.Highlight[] getHighlights()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |