|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.editor.highlight.SimpleLinePainter oracle.javatools.editor.highlight.ZigZagLinePainter
public class ZigZagLinePainter
The ZigZagLinePainter
is an implementation of the
which paints a zigzag underline
or separator of a given thickness.. UnderlinePainter
Field Summary | |
---|---|
static int |
MIN_THICKNESS
The minimum thickness that can be specified to the zigzag painter |
Fields inherited from class oracle.javatools.editor.highlight.SimpleLinePainter |
---|
_thickness, _underlineType, MAX_THICKNESS |
Fields inherited from interface oracle.javatools.editor.highlight.UnderlinePainter |
---|
TYPE_SEPARATOR, TYPE_STRIKETHRU, TYPE_UNDERLINE |
Constructor Summary | |
---|---|
ZigZagLinePainter(int thickness,
int underlineType)
Constructs a new ZigZagLinePainter of the specified
thickness. |
Method Summary | |
---|---|
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 . |
Methods inherited from class oracle.javatools.editor.highlight.SimpleLinePainter |
---|
getUnderlineType, getYPos |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIN_THICKNESS
Constructor Detail |
---|
public ZigZagLinePainter(int thickness, int underlineType)
ZigZagLinePainter
of the specified
thickness. Any thickness less than MIN_THICKNESS will be automatically
increased.
thickness
- the thickness of the line to paintunderlineType
- the type of underline, such as TYPE_SEPARATORMethod Detail |
---|
public void paintUnderline(java.awt.Graphics graphics, java.awt.Color color, int xPos, int width, int yTop, int yBaseline, int descent)
UnderlinePainter
.
paintUnderline
in interface UnderlinePainter
paintUnderline
in class SimpleLinePainter
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 with
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |