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

Variable Index

 o control
 o controlBlack
 o controlFont
 o controlHighlight
 o controlShadow
 o controlWhite
 o scrollbarTrack
 o toolTip

Constructor Index

 o BasicGraphicsUtils()

Method Index

 o drawBezel(Graphics, int, int, int, int, boolean, boolean)
 o drawDashedRect(Graphics, int, int, int, int)
 o drawEtchedRect(Graphics, int, int, int, int)
 o drawGroove(Graphics, int, int, int, int)
 o drawLoweredBezel(Graphics, int, int, int, int)
 o drawString(Graphics, String, int, int, int)
Draw a string with the graphics g at location (x,y) just like g.drawString() would.
 o getEtchedInsets()
Returns the amount of space taken up by a border drawn by drawEtchedRect()
 o getGrooveInsets()
Returns the amount of space taken up by a border drawn by drawGroove()
 o getPreferredButtonSize(AbstractButton, int)
 o getPreferredMenuItemSize(JComponent, Icon, Icon, int)
 o paintMenuItem(Graphics, JComponent, Icon, Icon, Color, Color, int)

Variables

 o controlFont
public static final Font controlFont
 o control
public static Color control
 o controlShadow
public static Color controlShadow
 o controlHighlight
public static Color controlHighlight
 o controlBlack
public static Color controlBlack
 o controlWhite
public static Color controlWhite
 o scrollbarTrack
public static Color scrollbarTrack
 o toolTip
public static Color toolTip

Constructors

 o BasicGraphicsUtils
public BasicGraphicsUtils()

Methods

 o drawEtchedRect
public static void drawEtchedRect(Graphics g,
                                  int x,
                                  int y,
                                  int w,
                                  int h)
 o 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
 o drawGroove
public static void drawGroove(Graphics g,
                              int x,
                              int y,
                              int w,
                              int h)
 o 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
 o drawBezel
public static void drawBezel(Graphics g,
                             int x,
                             int y,
                             int w,
                             int h,
                             boolean isPressed,
                             boolean hasFocus)
 o drawLoweredBezel
public static void drawLoweredBezel(Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h)
 o 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.

 o drawDashedRect
public static void drawDashedRect(Graphics g,
                                  int x,
                                  int y,
                                  int width,
                                  int height)
 o paintMenuItem
public static void paintMenuItem(Graphics g,
                                 JComponent c,
                                 Icon checkIcon,
                                 Icon arrowIcon,
                                 Color background,
                                 Color foreground,
                                 int defaultTextIconGap)
 o getPreferredButtonSize
public static Dimension getPreferredButtonSize(AbstractButton b,
                                               int textIconGap)
 o 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