com.partnersoft.gui
Class CssBorder
java.lang.Object
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.
|
Constructor Summary |
CssBorder(java.awt.Color color,
java.awt.Color fakeBackground,
int sideFlags,
int cornerRadius)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CssBorder
public CssBorder(java.awt.Color color,
java.awt.Color fakeBackground,
int sideFlags,
int cornerRadius)
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