Package org.jdesktop.swingx.plaf
Class PromptTextUI.PainterHighlighter
- java.lang.Object
-
- org.jdesktop.swingx.plaf.PromptTextUI.PainterHighlighter
-
- All Implemented Interfaces:
Highlighter
- Enclosing class:
- PromptTextUI
protected class PromptTextUI.PainterHighlighter extends Object implements Highlighter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.swing.text.Highlighter
Highlighter.Highlight, Highlighter.HighlightPainter
-
-
Constructor Summary
Constructors Constructor Description PainterHighlighter(Painter painter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
addHighlight(int p0, int p1, Highlighter.HighlightPainter p)
void
changeHighlight(Object tag, int p0, int p1)
void
deinstall(JTextComponent c)
Highlighter.Highlight[]
getHighlights()
void
install(JTextComponent c)
void
paint(Graphics g)
void
removeAllHighlights()
void
removeHighlight(Object tag)
-
-
-
Constructor Detail
-
PainterHighlighter
public PainterHighlighter(Painter painter)
-
-
Method Detail
-
addHighlight
public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter p) throws BadLocationException
- Specified by:
addHighlight
in interfaceHighlighter
- Throws:
BadLocationException
-
changeHighlight
public void changeHighlight(Object tag, int p0, int p1) throws BadLocationException
- Specified by:
changeHighlight
in interfaceHighlighter
- Throws:
BadLocationException
-
deinstall
public void deinstall(JTextComponent c)
- Specified by:
deinstall
in interfaceHighlighter
-
getHighlights
public Highlighter.Highlight[] getHighlights()
- Specified by:
getHighlights
in interfaceHighlighter
-
install
public void install(JTextComponent c)
- Specified by:
install
in interfaceHighlighter
-
paint
public void paint(Graphics g)
- Specified by:
paint
in interfaceHighlighter
-
removeAllHighlights
public void removeAllHighlights()
- Specified by:
removeAllHighlights
in interfaceHighlighter
-
removeHighlight
public void removeHighlight(Object tag)
- Specified by:
removeHighlight
in interfaceHighlighter
-
-