|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.plaf.PromptTextUI.PainterHighlighter
protected class PromptTextUI.PainterHighlighter
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.swing.text.Highlighter |
|---|
Highlighter.Highlight, Highlighter.HighlightPainter |
| Constructor Summary | |
|---|---|
PromptTextUI.PainterHighlighter(Painter painter)
|
|
| Method Summary | |
|---|---|
Object |
addHighlight(int p0,
int p1,
Highlighter.HighlightPainter p)
Adds a highlight to the view. |
void |
changeHighlight(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(Graphics g)
Renders the highlights. |
void |
removeAllHighlights()
Removes all highlights this highlighter is responsible for. |
void |
removeHighlight(Object tag)
Removes a highlight from the view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PromptTextUI.PainterHighlighter(Painter painter)
| Method Detail |
|---|
public Object addHighlight(int p0,
int p1,
Highlighter.HighlightPainter p)
throws BadLocationException
addHighlight in interface Highlighterp0 - the beginning of the range >= 0p1 - the end of the range >= p0p - the painter to use for the actual highlighting
BadLocationException - for an invalid range specification
public void changeHighlight(Object tag,
int p0,
int p1)
throws BadLocationException
changeHighlight in interface Highlightertag - which highlight to changep0 - the beginning of the range >= 0p1 - the end of the range >= p0
BadLocationException - for an invalid range specificationpublic void deinstall(JTextComponent c)
deinstall in interface Highlighterc - the JTextComponent editorpublic Highlighter.Highlight[] getHighlights()
getHighlights in interface Highlighterpublic void install(JTextComponent c)
install in interface Highlighterc - the JTextComponent editorpublic void paint(Graphics g)
paint in interface Highlighterg - the graphics context.public void removeAllHighlights()
removeAllHighlights in interface Highlighterpublic void removeHighlight(Object tag)
removeHighlight in interface Highlightertag - which highlight to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||