Package com.formdev.flatlaf.ui
Class FlatDropShadowBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.EmptyBorder
-
- javax.swing.plaf.BorderUIResource.EmptyBorderUIResource
-
- com.formdev.flatlaf.ui.FlatEmptyBorder
-
- com.formdev.flatlaf.ui.FlatDropShadowBorder
-
- All Implemented Interfaces:
FlatStylingSupport.StyleableBorder
,Serializable
,Border
,UIResource
public class FlatDropShadowBorder extends FlatEmptyBorder implements FlatStylingSupport.StyleableBorder
Paints a drop shadow border around the component. Supports 1-sided, 2-side, 3-sided or 4-sided drop shadows.The shadow insets allow specifying drop shadow thickness for each side. A zero or negative value hides the drop shadow on that side. A negative value can be used to indent the drop shadow on corners. E.g. -4 on left indents drop shadow at top-left and bottom-left corners by 4 pixels.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
shadowColor
protected Insets
shadowInsets
protected float
shadowOpacity
-
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
-
-
Constructor Summary
Constructors Constructor Description FlatDropShadowBorder()
FlatDropShadowBorder(Color shadowColor)
FlatDropShadowBorder(Color shadowColor, int shadowSize, float shadowOpacity)
FlatDropShadowBorder(Color shadowColor, Insets shadowInsets, float shadowOpacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
applyStyleProperty(String key, Object value)
Map<String,Class<?>>
getStyleableInfos()
Object
getStyleableValue(String key)
void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
-
Methods inherited from class com.formdev.flatlaf.ui.FlatEmptyBorder
applyStyleProperty, getBorderInsets, getBorderInsets, getStyleableValue, getUnscaledBorderInsets, scaleInsets
-
Methods inherited from class javax.swing.border.EmptyBorder
isBorderOpaque
-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
-
-
-
Method Detail
-
applyStyleProperty
public Object applyStyleProperty(String key, Object value)
- Specified by:
applyStyleProperty
in interfaceFlatStylingSupport.StyleableBorder
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos()
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableBorder
- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableBorder
- Since:
- 2.5
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classEmptyBorder
-
-