| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UnderlinePainter
The UnderlinePainter defines an interface for painting an underline or separator.
An underline is typically painted at the baseline of the font, while a separator is typically painted below the descent of a font to separate two lines of text.
| Field Summary | |
|---|---|
| static int | TYPE_SEPARATORConstant indicating separator type of underline. | 
| static int | TYPE_STRIKETHRUConstant indicating strike-through type of underline. | 
| static int | TYPE_UNDERLINEConstant indicating regular underline. | 
| Method Summary | |
|---|---|
|  int | getUnderlineType()Fetch the type of underline, such as TYPE_SEPARATOR. | 
|  void | paintUnderline(java.awt.Graphics graphics, java.awt.Color color, int xPos, int width, int yTop, int yBaseline, int descent)Paints the underline using this implementation of the UnderlinePainter. | 
| Field Detail | 
|---|
static final int TYPE_STRIKETHRU
static final int TYPE_UNDERLINE
static final int TYPE_SEPARATOR
| Method Detail | 
|---|
void paintUnderline(java.awt.Graphics graphics,
                    java.awt.Color color,
                    int xPos,
                    int width,
                    int yTop,
                    int yBaseline,
                    int descent)
UnderlinePainter.graphics - the graphics context to paint intocolor - the color to use for painting the underlinexPos - the x position to start painting fromwidth - the width of the underline to paintyTop - the y position of the top of the textyBaseline - the y position of the baseline of the text we are drawing an underline fordescent - the descent of the font the text was drawn withint getUnderlineType()
| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||