Package com.tagtraum.beatunes
Class UnderlineHighlighter
- java.lang.Object
-
- javax.swing.text.LayeredHighlighter
-
- javax.swing.text.DefaultHighlighter
-
- com.tagtraum.beatunes.UnderlineHighlighter
-
- All Implemented Interfaces:
Highlighter
public class UnderlineHighlighter extends DefaultHighlighter
Underline Highlighter forJTextComponent
s.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnderlineHighlighter.UnderlineHighlightPainter
Painter for underlined highlights.-
Nested classes/interfaces inherited from class javax.swing.text.DefaultHighlighter
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
Fields Modifier and Type Field Description static BasicStroke
SPELL_CHECK_STROKE
-
Fields inherited from class javax.swing.text.DefaultHighlighter
DefaultPainter
-
-
Constructor Summary
Constructors Constructor Description UnderlineHighlighter(Color color)
UnderlineHighlighter(Color color, Stroke stroke)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
addHighlight(int p0, int p1)
void
setColor(Color color)
void
setDrawsLayeredHighlights(boolean newValue)
void
setStroke(Stroke stroke)
-
Methods inherited from class javax.swing.text.DefaultHighlighter
addHighlight, changeHighlight, deinstall, getDrawsLayeredHighlights, getHighlights, install, paint, paintLayeredHighlights, removeAllHighlights, removeHighlight
-
-
-
-
Field Detail
-
SPELL_CHECK_STROKE
public static final BasicStroke SPELL_CHECK_STROKE
-
-
Method Detail
-
setStroke
public void setStroke(Stroke stroke)
-
setColor
public void setColor(Color color)
-
addHighlight
public Object addHighlight(int p0, int p1) throws BadLocationException
- Throws:
BadLocationException
-
setDrawsLayeredHighlights
public void setDrawsLayeredHighlights(boolean newValue)
- Overrides:
setDrawsLayeredHighlights
in classDefaultHighlighter
-
-