All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.basic.BasicGraphicsUtils
java.lang.Object
|
+----java.awt.swing.basic.BasicGraphicsUtils
- public class BasicGraphicsUtils
- extends Object
control-
controlBlack-
controlFont-
controlHighlight-
controlShadow-
controlWhite-
scrollbarTrack-
toolTip-
BasicGraphicsUtils()
-
drawBezel(Graphics, int, int, int, int, boolean, boolean)
-
drawDashedRect(Graphics, int, int, int, int)
-
drawEtchedRect(Graphics, int, int, int, int)
-
drawGroove(Graphics, int, int, int, int)
-
drawLoweredBezel(Graphics, int, int, int, int)
-
drawString(Graphics, String, int, int, int)
- Draw a string with the graphics g at location (x,y) just like g.drawString() would.
getEtchedInsets()
- Returns the amount of space taken up by a border drawn by
drawEtchedRect()
getGrooveInsets()
- Returns the amount of space taken up by a border drawn by
drawGroove()
getPreferredButtonSize(AbstractButton, int)
-
getPreferredMenuItemSize(JComponent, Icon, Icon, int)
-
paintMenuItem(Graphics, JComponent, Icon, Icon, Color, Color, int)
-
controlFont
public static final Font controlFont
control
public static Color control
controlShadow
public static Color controlShadow
controlHighlight
public static Color controlHighlight
controlBlack
public static Color controlBlack
controlWhite
public static Color controlWhite
scrollbarTrack
public static Color scrollbarTrack
toolTip
public static Color toolTip
BasicGraphicsUtils
public BasicGraphicsUtils()
drawEtchedRect
public static void drawEtchedRect(Graphics g,
int x,
int y,
int w,
int h)
getEtchedInsets
public static Insets getEtchedInsets()
- Returns the amount of space taken up by a border drawn by
drawEtchedRect()
- Returns:
- the inset of an etched rect
drawGroove
public static void drawGroove(Graphics g,
int x,
int y,
int w,
int h)
getGrooveInsets
public static Insets getGrooveInsets()
- Returns the amount of space taken up by a border drawn by
drawGroove()
- Returns:
- the inset of a groove border
drawBezel
public static void drawBezel(Graphics g,
int x,
int y,
int w,
int h,
boolean isPressed,
boolean hasFocus)
drawLoweredBezel
public static void drawLoweredBezel(Graphics g,
int x,
int y,
int w,
int h)
drawString
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 occurence of underlineChar in text will be underlined. The matching is
not case sensitive.
drawDashedRect
public static void drawDashedRect(Graphics g,
int x,
int y,
int width,
int height)
paintMenuItem
public static void paintMenuItem(Graphics g,
JComponent c,
Icon checkIcon,
Icon arrowIcon,
Color background,
Color foreground,
int defaultTextIconGap)
getPreferredButtonSize
public static Dimension getPreferredButtonSize(AbstractButton b,
int textIconGap)
getPreferredMenuItemSize
public static Dimension getPreferredMenuItemSize(JComponent c,
Icon checkIcon,
Icon arrowIcon,
int defaultTextIconGap)
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature