| java.lang.Object javax.swing.plaf.basic.BasicGraphicsUtils
BasicGraphicsUtils | public class BasicGraphicsUtils (Code) | | |
Method Summary | |
public static void | drawBezel(Graphics g, int x, int y, int w, int h, boolean isPressed, boolean isDefault, Color shadow, Color darkShadow, Color highlight, Color lightHighlight) | public static void | drawDashedRect(Graphics g, int x, int y, int width, int height) | public static void | drawEtchedRect(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight) | public static void | drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight) | public static void | drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight) | public static void | drawString(Graphics g, String text, int underlinedChar, int x, int y) Draw a string with the graphics g at location (x,y)
just like g.drawString would.
The first occurrence of underlineChar
in text will be underlined. | public static void | drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y) Draw a string with the graphics g at location
(x , y )
just like g.drawString would.
The character at index underlinedIndex
in text will be underlined. | public static Insets | getEtchedInsets() | public static Insets | getGrooveInsets() | public static Dimension | getPreferredButtonSize(AbstractButton b, int textIconGap) | static boolean | isLeftToRight(Component c) |
drawBezel | public static void drawBezel(Graphics g, int x, int y, int w, int h, boolean isPressed, boolean isDefault, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)(Code) | | |
drawDashedRect | public static void drawDashedRect(Graphics g, int x, int y, int width, int height)(Code) | | |
drawString | public static void drawString(Graphics g, String text, int underlinedChar, int x, int y)(Code) | | Draw a string with the graphics g at location (x,y)
just like g.drawString would.
The first occurrence of underlineChar
in text will be underlined. The matching algorithm is
not case sensitive.
|
drawStringUnderlineCharAt | public static void drawStringUnderlineCharAt(Graphics g, String text, int underlinedIndex, int x, int y)(Code) | | Draw a string with the graphics g at location
(x , y )
just like g.drawString would.
The character at index underlinedIndex
in text will be underlined. If index is beyond the
bounds of text (including < 0), nothing will be
underlined.
Parameters: g - Graphics to draw with Parameters: text - String to draw Parameters: underlinedIndex - Index of character in text to underline Parameters: x - x coordinate to draw at Parameters: y - y coordinate to draw at since: 1.4 |
getEtchedInsets | public static Insets getEtchedInsets()(Code) | | Returns the amount of space taken up by a border drawn by
drawEtchedRect()
the inset of an etched rect |
getGrooveInsets | public static Insets getGrooveInsets()(Code) | | Returns the amount of space taken up by a border drawn by
drawGroove()
the inset of a groove border |
|
|