org.jdesktop.swingx.border
Class DropShadowBorder
java.lang.Object
org.jdesktop.swingx.border.DropShadowBorder
- All Implemented Interfaces:
- Border
public class DropShadowBorder
- extends Object
- implements Border
Implements a DropShadow for components. In general, the DropShadowBorder will
work with any rectangular components that do not have a default border installed
as part of the look and feel, or otherwise. For example, DropShadowBorder works
wonderfully with JPanel, but horribly with JComboBox.
Constructor Summary |
DropShadowBorder()
|
DropShadowBorder(Color lineColor,
int lineWidth,
boolean showLeftShadow)
|
DropShadowBorder(Color lineColor,
int lineWidth,
int shadowSize)
|
DropShadowBorder(Color lineColor,
int lineWidth,
int shadowSize,
float shadowOpacity,
int cornerSize,
boolean showTopShadow,
boolean showLeftShadow,
boolean showBottomShadow,
boolean showRightShadow)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DropShadowBorder
public DropShadowBorder()
DropShadowBorder
public DropShadowBorder(Color lineColor,
int lineWidth,
int shadowSize)
DropShadowBorder
public DropShadowBorder(Color lineColor,
int lineWidth,
boolean showLeftShadow)
DropShadowBorder
public DropShadowBorder(Color lineColor,
int lineWidth,
int shadowSize,
float shadowOpacity,
int cornerSize,
boolean showTopShadow,
boolean showLeftShadow,
boolean showBottomShadow,
boolean showRightShadow)
paintBorder
public void paintBorder(Component c,
Graphics graphics,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface Border
getBorderInsets
public Insets getBorderInsets(Component c)
- Specified by:
getBorderInsets
in interface Border
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interface Border
isShowTopShadow
public boolean isShowTopShadow()
isShowLeftShadow
public boolean isShowLeftShadow()
isShowRightShadow
public boolean isShowRightShadow()
isShowBottomShadow
public boolean isShowBottomShadow()
getLineWidth
public int getLineWidth()
getLineColor
public Color getLineColor()
getShadowSize
public int getShadowSize()
getShadowOpacity
public float getShadowOpacity()
getCornerSize
public int getCornerSize()