de.muntjak.tinylookandfeel.borders
Class TinyPopupMenuBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by de.muntjak.tinylookandfeel.borders.TinyPopupMenuBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource

public class TinyPopupMenuBorder
extends javax.swing.border.AbstractBorder
implements javax.swing.plaf.UIResource

TinyPopupMenuBorder

See Also:
Serialized Form

Field Summary
static java.awt.Image LEFT_TO_RIGHT_SHADOW_MASK
           
static java.awt.Image RIGHT_TO_LEFT_SHADOW_MASK
           
static int SHADOW_SIZE
           
 
Constructor Summary
TinyPopupMenuBorder()
           
 
Method Summary
static java.lang.String componentOrientationToString(java.awt.ComponentOrientation co)
           
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Gets the border insets for a given component.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHADOW_SIZE

public static final int SHADOW_SIZE
See Also:
Constant Field Values

LEFT_TO_RIGHT_SHADOW_MASK

public static final java.awt.Image LEFT_TO_RIGHT_SHADOW_MASK

RIGHT_TO_LEFT_SHADOW_MASK

public static final java.awt.Image RIGHT_TO_LEFT_SHADOW_MASK
Constructor Detail

TinyPopupMenuBorder

public TinyPopupMenuBorder()
Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
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)
Gets the border insets for a given component.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
Parameters:
c - The component to get its border insets.
Returns:
different insets for shadow and non-shadow popups

componentOrientationToString

public static java.lang.String componentOrientationToString(java.awt.ComponentOrientation co)