|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
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_SEPARATOR Constant indicating separator type of underline. |
static int |
TYPE_STRIKETHRU Constant indicating strike-through type of underline. |
static int |
TYPE_UNDERLINE Constant 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.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |