jas.util.border
Class ShadowBorder
java.lang.Object
|
+--javax.swing.border.AbstractBorder
|
+--jas.util.border.ShadowBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable
- public class ShadowBorder
- extends javax.swing.border.AbstractBorder
Draws a drop shadow border. Designed to be used as part of
a compound border in combination with a line border.
- See Also:
- Serialized Form
Constructor Summary |
ShadowBorder()
Creates a ShadowBorder with default properties |
ShadowBorder(java.awt.Color c,
int orientation,
int size)
Creates a ShadowBorder |
Methods inherited from class javax.swing.border.AbstractBorder |
getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NORTHEAST
public final int NORTHEAST
NORTHWEST
public final int NORTHWEST
SOUTHEAST
public final int SOUTHEAST
SOUTHWEST
public final int SOUTHWEST
ShadowBorder
public ShadowBorder()
- Creates a ShadowBorder with default properties
ShadowBorder
public ShadowBorder(java.awt.Color c,
int orientation,
int size)
- Creates a ShadowBorder
- Parameters:
c
- The color for the shadow. If null
the border will be drawn using a darker version of the components background color.orientation
- One of NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWESTsize
- The size of the shadow in pixels
createShadowBorder
public static ShadowBorder createShadowBorder()
paintBorder
public void paintBorder(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Overrides:
paintBorder
in class javax.swing.border.AbstractBorder
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Overrides:
getBorderInsets
in class javax.swing.border.AbstractBorder
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets i)
- Overrides:
getBorderInsets
in class javax.swing.border.AbstractBorder