com.partnersoft.gui
Class CssBorder

java.lang.Object
  extended by com.partnersoft.gui.CssBorder
All Implemented Interfaces:
javax.swing.border.Border

public class CssBorder
extends java.lang.Object
implements javax.swing.border.Border

Lets you control the top, left, bottom and right borders separately. Also gives you (shudder) rounded corners. Dashing, maybe?

Author:
Russell Cagle Copyright 2006 Partner Software, Inc.

Field Summary
static int ALL_SIDES
           
static int BOTTOM
           
static int LEFT
           
static int RIGHT
           
static int TOP
           
 
Constructor Summary
CssBorder(java.awt.Color color, java.awt.Color fakeBackground, int sideFlags, int cornerRadius)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP

public static final int TOP
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

ALL_SIDES

public static final int ALL_SIDES
See Also:
Constant Field Values
Constructor Detail

CssBorder

public CssBorder(java.awt.Color color,
                 java.awt.Color fakeBackground,
                 int sideFlags,
                 int cornerRadius)
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border