Class FlatDropShadowBorder

  • All Implemented Interfaces:
    Serializable, Border, UIResource

    public class FlatDropShadowBorder
    extends FlatEmptyBorder
    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
    • Constructor Detail

      • FlatDropShadowBorder

        public FlatDropShadowBorder()
      • FlatDropShadowBorder

        public FlatDropShadowBorder​(Color shadowColor)
      • FlatDropShadowBorder

        public FlatDropShadowBorder​(Color shadowColor,
                                    int shadowSize,
                                    float shadowOpacity)
      • FlatDropShadowBorder

        public FlatDropShadowBorder​(Color shadowColor,
                                    Insets shadowInsets,
                                    float shadowOpacity)