org.fife.jgoodies.looks.common
Class ShadowPopupBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by org.fife.jgoodies.looks.common.ShadowPopupBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public final class ShadowPopupBorder
extends javax.swing.border.AbstractBorder

A border with a drop shadow intended to be used as the outer border of popups. Can paint the screen background if used with heavy-weight popup windows.

Version:
$Revision: 1.6 $
Author:
Karsten Lentzsch
See Also:
ShadowPopup, ShadowPopupFactory, Serialized Form

Constructor Summary
ShadowPopupBorder()
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Returns the insets of the border.
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
          Reinitializes the insets parameter with this Border's current Insets.
static ShadowPopupBorder getInstance()
          Returns the singleton instance used to draw all borders.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Paints the border for the specified component with the specified position and size.
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowPopupBorder

public ShadowPopupBorder()
Method Detail

getInstance

public static ShadowPopupBorder getInstance()
Returns the singleton instance used to draw all borders.


paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Paints the border for the specified component with the specified position and size.

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Returns the insets of the border.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
Reinitializes the insets parameter with this Border's current Insets.

Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
Parameters:
c - the component for which this border insets value applies
insets - the object to be reinitialized
Returns:
the insets object