|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jivesoftware.spark.component.spelling.BackgroundChecker.ZigZagHighlightPainter
HighlightPainter that underlines highlighted text with a zig-zag line.
| Field Summary | |
protected java.awt.Color |
color
Color used to paint the zig-zag line. |
| Constructor Summary | |
BackgroundChecker.ZigZagHighlightPainter()
Constructor. |
|
BackgroundChecker.ZigZagHighlightPainter(java.awt.Color c)
Construct a new ZigZagHighlightPainter. |
|
| Method Summary | |
java.awt.Color |
getColor()
Obtain the color used to highlight text. |
void |
paint(java.awt.Graphics g,
int start,
int end,
java.awt.Shape bounds,
javax.swing.text.JTextComponent component)
Paint the highlight. |
void |
setColor(java.awt.Color c)
Change the color used to highlight text. |
protected void |
zigzag(java.awt.Graphics g,
int xStart,
int xEnd,
int y)
Draw a zig-zag line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.awt.Color color
| Constructor Detail |
public BackgroundChecker.ZigZagHighlightPainter(java.awt.Color c)
c - The color to use when highlighting.public BackgroundChecker.ZigZagHighlightPainter()
| Method Detail |
public java.awt.Color getColor()
public void paint(java.awt.Graphics g,
int start,
int end,
java.awt.Shape bounds,
javax.swing.text.JTextComponent component)
paint in interface javax.swing.text.Highlighter.HighlightPainterg - Graphics context to use for paintingstart - Offset of the first character in the component's text
to highlightend - Offset of the last character in the component's text
to highlightbounds - Defines the bounds of the component the painter
must paint within.component - The text component to highlight.public void setColor(java.awt.Color c)
c - The new color.
protected void zigzag(java.awt.Graphics g,
int xStart,
int xEnd,
int y)
g - The graphics context to use when drawing.xStart - The leftmost part of the linexEnd - The rightmost part of the liney - The vertical position of the line.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||