public static class

MotifBorders.MotifPopupMenuBorder

extends AbstractBorder
implements UIResource
java.lang.Object
   ↳ javax.swing.border.AbstractBorder
     ↳ com.sun.java.swing.plaf.motif.MotifBorders.MotifPopupMenuBorder

Summary

Constants
int GROOVE_HEIGHT
int TEXT_SPACING
Fields
protected Color background
protected Font font
protected Color foreground
protected Color highlightColor
protected Color shadowColor
Public Constructors
MotifBorders.MotifPopupMenuBorder(Font titleFont, Color bgColor, Color fgColor, Color shadow, Color highlight)
Creates a MotifPopupMenuBorder instance
Public Methods
Insets getBorderInsets(Component c, Insets insets)
Reinitialize the insets parameter with this Border's current Insets.
Insets getBorderInsets(Component c)
Returns the insets of the border.
void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Paints the border for the specified component with the specified position and size.
[Expand]
Inherited Methods
From class javax.swing.border.AbstractBorder
From class java.lang.Object
From interface javax.swing.border.Border

Constants

protected static final int GROOVE_HEIGHT

Constant Value: 2 (0x00000002)

protected static final int TEXT_SPACING

Constant Value: 2 (0x00000002)

Fields

protected Color background

protected Font font

protected Color foreground

protected Color highlightColor

protected Color shadowColor

Public Constructors

public MotifBorders.MotifPopupMenuBorder (Font titleFont, Color bgColor, Color fgColor, Color shadow, Color highlight)

Creates a MotifPopupMenuBorder instance

Public Methods

public Insets getBorderInsets (Component c, Insets insets)

Reinitialize the insets parameter with this Border's current Insets.

Parameters
c the component for which this border insets value applies
insets the object to be reinitialized
Returns
  • the insets object

public Insets getBorderInsets (Component c)

Returns the insets of the border.

Parameters
c the component for which this border insets value applies
Returns
  • the new Insets object initialized to 0

public void paintBorder (Component c, Graphics g, int x, int y, int width, int height)

Paints the border for the specified component with the specified position and size.

Parameters
c the component for which this border is being painted
g the paint graphics
x the x position of the painted border
y the y position of the painted border
width the width of the painted border
height the height of the painted border