|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.editor.underline.SimpleLinePainter oracle.javatools.editor.underline.DottedLinePainter
The DottedLinePainter
is an implementation of the
which paints a straight,
but dotted line of a given thickness. UnderlinePainter
Field Summary | |
protected int |
dottedWidth
The width of the visible dotted line. |
protected int |
gapWidth
The width of the gap between the dotted lines. |
static int |
MAX_WIDTH
The maximum width of either the visible dotted line (dottedWidth) or the dotted gap. |
static int |
MIN_WIDTH
The minimum width of either the visible dotted line (dottedWidth) or the dotted gap. |
Fields inherited from class oracle.javatools.editor.underline.SimpleLinePainter |
fromBaseline, MAX_THICKNESS, thickness |
Constructor Summary | |
DottedLinePainter(int thickness,
boolean fromBaseline,
int dottedWidth,
int gapWidth)
Constructs a new DottedLinePainter of the specified
thickness. |
Method Summary | |
void |
paintUnderline(java.awt.Graphics graphics,
java.awt.Color color,
int xPos,
int width,
int yBaseline,
int descent)
Paints the underline using this implementation of the UnderlinePainter . |
Methods inherited from class oracle.javatools.editor.underline.SimpleLinePainter |
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 MAX_WIDTH
public static final int MIN_WIDTH
protected final int dottedWidth
protected final int gapWidth
Constructor Detail |
public DottedLinePainter(int thickness, boolean fromBaseline, int dottedWidth, int gapWidth)
DottedLinePainter
of the specified
thickness. The dottedWidth is the width of the visible (dotted)
lines, while the gapWidth is the width of the gaps between the
dotted lines.
thickness
- the thickness of the line to paintfromBaseline
- true if the underline extends from the baselinedottedWidth
- the width of the visible linesgapWidth
- the width of the gap between visible linesMethod Detail |
public void paintUnderline(java.awt.Graphics graphics, java.awt.Color color, int xPos, int width, 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 paintyBaseline
- 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
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.