public class

WindowsGraphicsUtils

extends Object
java.lang.Object
   ↳ com.sun.java.swing.plaf.windows.WindowsGraphicsUtils

Class Overview

A collection of static utility methods used for rendering the Windows look and feel.

Summary

Public Constructors
WindowsGraphicsUtils()
Public Methods
static void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text, int textShiftOffset)
Renders a text String in Windows without the mnemonic.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WindowsGraphicsUtils ()

Public Methods

public static void paintText (Graphics g, AbstractButton b, Rectangle textRect, String text, int textShiftOffset)

Renders a text String in Windows without the mnemonic. This is here because the WindowsUI hiearchy doesn't match the Component heirarchy. All the overriden paintText methods of the ButtonUI delegates will call this static method.

Parameters
g Graphics context
b Current button to render
textRect Bounding rectangle to render the text.
text String to render