com.jgoodies.looks.common

Class RenderingUtils


public final class RenderingUtils
extends java.lang.Object

Provides convenience behavior used by the JGoodies Looks.

Note: This class is not part of the public Looks API. It should be treated as library internal and should not be used by API users. It may be removed or changed with the Looks version without further notice.

Version:
$Revision: 1.11 $
Authors:
Karsten Lentzsch
Andrej Golovnin
Since:
2.0

Method Summary

static void
drawStringUnderlineCharAt(JComponent c, Graphics g, String text, int underlinedIndex, int x, int y)
Draws the string at the specified location underlining the specified character.

Method Details

drawStringUnderlineCharAt

public static void drawStringUnderlineCharAt(JComponent c,
                                             Graphics g,
                                             String text,
                                             int underlinedIndex,
                                             int x,
                                             int y)
Draws the string at the specified location underlining the specified character.
Parameters:
c - JComponent that will display the string, may be null
g - Graphics to draw the text to
text - String to display
underlinedIndex - Index of a character in the string to underline
x - X coordinate to draw the text at
y - Y coordinate to draw the text at

Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.