|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Unsafe:
Method Summary | |
Object |
addHighlight(int p0,
int p1,
javax.swing.text.Highlighter.HighlightPainter p)
Suppressed: Adds a highlight to the view. |
void |
changeHighlight(Object tag,
int p0,
int p1)
Enabled: Changes the given highlight to span a different portion of the document. |
void |
deinstall(JTextComponent c)
Suppressed: Called when the UI is being removed from the interface of a JTextComponent. |
javax.swing.text.Highlighter.Highlight[] |
getHighlights()
Suppressed: Fetches the current list of highlights. |
void |
install(JTextComponent c)
Suppressed: Called when the UI is being installed into the interface of a JTextComponent. |
void |
paint(Graphics g)
Suppressed: Renders the highlights. |
void |
removeAllHighlights()
Enabled: Removes all highlights this highlighter is responsible for. |
void |
removeHighlight(Object tag)
Enabled: 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(Graphics g)
g
- the graphics context.public Object addHighlight(int p0, int p1, javax.swing.text.Highlighter.HighlightPainter p) throws BadLocationException
p0
- the beginning of the range >= 0p1
- the end of the range >= p0p
- the painter to use for the actual highlighting
BadLocationException
public void removeHighlight(Object tag)
tag
- which highlight to removepublic void removeAllHighlights()
public void changeHighlight(Object tag, int p0, int p1) throws BadLocationException
tag
- which highlight to changep0
- the beginning of the range >= 0p1
- the end of the range >= p0
BadLocationException
public javax.swing.text.Highlighter.Highlight[] getHighlights()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |