|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.common.internal.RenderingUtils
public final class RenderingUtils
Provides convenience behavior for drawing strings, underline chars and accessing font metrics.
Note: This class is not part of the publi JGoodies Common API It should be treated as library internal and should not be used b API users. It may be removed or changed without further notice.
| Method Summary | |
|---|---|
static void |
drawString(JComponent c,
Graphics g,
String text,
int x,
int y)
Draws the string at the specified location underlining the specifie character. |
static void |
drawStringUnderlineCharAt(JComponent c,
Graphics g,
String text,
int underlinedIndex,
int x,
int y)
Draws the string at the specified location underlining the specifie character. |
static FontMetrics |
getFontMetrics(JComponent c,
Graphics g)
Returns the FontMetrics for the current Font of the passe in Graphics. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void drawString(JComponent c,
Graphics g,
String text,
int x,
int y)
c - JComponent that will display the string, may be nullg - Graphics to draw the text totext - String to displayx - X coordinate to draw the text aty - Y coordinate to draw the text at
public static void drawStringUnderlineCharAt(JComponent c,
Graphics g,
String text,
int underlinedIndex,
int x,
int y)
c - JComponent that will display the string, may be nullg - Graphics to draw the text totext - String to displayunderlinedIndex - Index of a character in the string to underlinex - X coordinate to draw the text aty - Y coordinate to draw the text at
public static FontMetrics getFontMetrics(JComponent c,
Graphics g)
c - JComponent requesting FontMetrics, may be nullg - Graphics Graphics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||