com.keyoti.rapidSpell.desktop
Class WavyUnderlinePainter
java.lang.Object
|
+--com.keyoti.rapidSpell.desktop.WavyUnderlinePainter
- public class WavyUnderlinePainter
- extends java.lang.Object
- implements javax.swing.text.Highlighter.HighlightPainter
The highlight painter used to paint underlines.
Field Summary |
protected java.awt.Color |
color
|
Method Summary |
java.awt.Color |
getColor()
|
void |
paint(java.awt.Graphics g,
int start,
int end,
java.awt.Shape bounds,
javax.swing.text.JTextComponent component)
Called when painting of highlight is required, as per javax.swing.text.Highlighter.HighlightPainter interface. |
protected void |
paintUnderline(java.awt.Graphics g,
int startX,
int endX,
int startY,
int style)
Paints the underline from 'startX' to 'endX' at 'startY', with UnderlineStyle 'style' onto 'g'. |
void |
setColor(java.awt.Color c)
Sets the color of the underline |
void |
setUnderlineStyle(int style)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
color
protected java.awt.Color color
WavyUnderlinePainter
public WavyUnderlinePainter(java.awt.Color c)
WavyUnderlinePainter
public WavyUnderlinePainter()
getColor
public java.awt.Color getColor()
setUnderlineStyle
public void setUnderlineStyle(int style)
paint
public void paint(java.awt.Graphics g,
int start,
int end,
java.awt.Shape bounds,
javax.swing.text.JTextComponent component)
- Called when painting of highlight is required, as per javax.swing.text.Highlighter.HighlightPainter interface.
- Specified by:
- paint in interface javax.swing.text.Highlighter.HighlightPainter
setColor
public void setColor(java.awt.Color c)
- Sets the color of the underline
paintUnderline
protected void paintUnderline(java.awt.Graphics g,
int startX,
int endX,
int startY,
int style)
- Paints the underline from 'startX' to 'endX' at 'startY', with UnderlineStyle 'style' onto 'g'.
Copyright © 2002-2005 Keyoti Inc. All Rights Reserved.