|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.border.DropShadowBorder
public class DropShadowBorder
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(boolean showLeftShadow)
|
|
DropShadowBorder(Color shadowColor,
int shadowSize)
|
|
DropShadowBorder(Color shadowColor,
int shadowSize,
float shadowOpacity,
int cornerSize,
boolean showTopShadow,
boolean showLeftShadow,
boolean showBottomShadow,
boolean showRightShadow)
|
Method Summary | |
---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the border. |
int |
getCornerSize()
|
Color |
getShadowColor()
|
float |
getShadowOpacity()
|
int |
getShadowSize()
|
boolean |
isBorderOpaque()
Returns whether or not the border is opaque. |
boolean |
isShowBottomShadow()
|
boolean |
isShowLeftShadow()
|
boolean |
isShowRightShadow()
|
boolean |
isShowTopShadow()
|
void |
paintBorder(Component c,
Graphics graphics,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DropShadowBorder()
public DropShadowBorder(Color shadowColor, int shadowSize)
public DropShadowBorder(boolean showLeftShadow)
public DropShadowBorder(Color shadowColor, int shadowSize, float shadowOpacity, int cornerSize, boolean showTopShadow, boolean showLeftShadow, boolean showBottomShadow, boolean showRightShadow)
Method Detail |
---|
public void paintBorder(Component c, Graphics graphics, int x, int y, int width, int height)
javax.swing.border.Border
paintBorder
in interface Border
c
- the component for which this border is being paintedgraphics
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted borderpublic Insets getBorderInsets(Component c)
javax.swing.border.Border
getBorderInsets
in interface Border
c
- the component for which this border insets value appliespublic boolean isBorderOpaque()
javax.swing.border.Border
isBorderOpaque
in interface Border
public boolean isShowTopShadow()
public boolean isShowLeftShadow()
public boolean isShowRightShadow()
public boolean isShowBottomShadow()
public int getShadowSize()
public Color getShadowColor()
public float getShadowOpacity()
public int getCornerSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |