public static class

MotifBorders.FrameBorder

extends AbstractBorder
implements UIResource
java.lang.Object
   ↳ javax.swing.border.AbstractBorder
     ↳ com.sun.java.swing.plaf.motif.MotifBorders.FrameBorder
Known Direct Subclasses

Summary

Constants
int BORDER_SIZE
Public Constructors
MotifBorders.FrameBorder(JComponent comp)
Constructs an FrameBorder for the JComponent comp.
Public Methods
JComponent component()
Returns the FrameBorder's JComponent.
Insets getBorderInsets(Component c, Insets newInsets)
Reinitializes the insets parameter with this Border's current Insets.
Insets getBorderInsets(Component c)
This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.
void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Draws the FrameBorder in the given Rect.
void setComponent(JComponent comp)
Sets the FrameBorder's JComponent.
Protected Methods
boolean drawBottomBorder(Component c, Graphics g, int x, int y, int width, int height)
Draws the FrameBorder's bottom border.
boolean drawLeftBorder(Component c, Graphics g, int x, int y, int width, int height)
Draws the FrameBorder's left border.
boolean drawRightBorder(Component c, Graphics g, int x, int y, int width, int height)
Draws the FrameBorder's right border.
boolean drawTopBorder(Component c, Graphics g, int x, int y, int width, int height)
Draws the FrameBorder's top border.
Color getFrameColor()
Color getFrameHighlight()
Color getFrameShadow()
boolean isActiveFrame()
[Expand]
Inherited Methods
From class javax.swing.border.AbstractBorder
From class java.lang.Object
From interface javax.swing.border.Border

Constants

public static final int BORDER_SIZE

Constant Value: 5 (0x00000005)

Public Constructors

public MotifBorders.FrameBorder (JComponent comp)

Constructs an FrameBorder for the JComponent comp.

Public Methods

public JComponent component ()

Returns the FrameBorder's JComponent.

public Insets getBorderInsets (Component c, Insets newInsets)

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

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

public Insets getBorderInsets (Component c)

This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.

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)

Draws the FrameBorder in the given Rect. Calls drawTitleBar, drawLeftBorder, drawRightBorder and drawBottomBorder.

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

public void setComponent (JComponent comp)

Sets the FrameBorder's JComponent.

Protected Methods

protected boolean drawBottomBorder (Component c, Graphics g, int x, int y, int width, int height)

Draws the FrameBorder's bottom border.

protected boolean drawLeftBorder (Component c, Graphics g, int x, int y, int width, int height)

Draws the FrameBorder's left border.

protected boolean drawRightBorder (Component c, Graphics g, int x, int y, int width, int height)

Draws the FrameBorder's right border.

protected boolean drawTopBorder (Component c, Graphics g, int x, int y, int width, int height)

Draws the FrameBorder's top border.

protected Color getFrameColor ()

protected Color getFrameHighlight ()

protected Color getFrameShadow ()

protected boolean isActiveFrame ()