public class

MotifGraphicsUtils

extends Object
implements SwingConstants
java.lang.Object
   ↳ com.sun.java.swing.plaf.motif.MotifGraphicsUtils

Summary

[Expand]
Inherited Constants
From interface javax.swing.SwingConstants
Public Constructors
MotifGraphicsUtils()
Public Methods
static void drawGroove(Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)
static void drawStringInRect(Graphics g, String aString, int x, int y, int width, int height, int justification)
Draws aString in the rectangle defined by (x, y, width, height).
static void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)
This method is not being used to paint menu item since 6.0 This code left for compatibility only.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MotifGraphicsUtils ()

Public Methods

public static void drawGroove (Graphics g, int x, int y, int w, int h, Color shadow, Color highlight)

public static void drawStringInRect (Graphics g, String aString, int x, int y, int width, int height, int justification)

Draws aString in the rectangle defined by (x, y, width, height). justification specifies the text's justification, one of LEFT, CENTER, or RIGHT. drawStringInRect() does not clip to the rectangle, but instead uses this rectangle and the desired justification to compute the point at which to begin drawing the text.

See Also
  • #drawString

public static void paintMenuItem (Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap)

This method is not being used to paint menu item since 6.0 This code left for compatibility only. Do not use or override it, this will not cause any visible effect.