Class BottomShadowOverlayPainter

  • All Implemented Interfaces:
    RadianceOverlayPainter, RadianceTrait

    public final class BottomShadowOverlayPainter
    extends java.lang.Object
    implements RadianceOverlayPainter
    Overlay painter that paints a few pixel-high drop shadow at the bottom edge of the relevant decoration area. This class is part of officially supported API.
    • Constructor Detail

      • BottomShadowOverlayPainter

        private BottomShadowOverlayPainter()
        Private constructor to enforce that getInstance(int) is the only way an application can get an instance of this class.
    • Method Detail

      • getInstance

        public static BottomShadowOverlayPainter getInstance()
        Returns the single instance of this class.
        Returns:
        Single instance of this class.
      • getInstance

        public static BottomShadowOverlayPainter getInstance​(int strength)
        Returns an instance of bottom shadow overlay painter with the requested strength.
        Parameters:
        strength - Drop shadow strength. Must be in [0..100] range.
        Returns:
        Bottom shadow overlay painter with the requested strength.
      • paintOverlay

        public void paintOverlay​(java.awt.Graphics2D graphics,
                                 java.awt.Component comp,
                                 RadianceThemingSlices.DecorationAreaType decorationAreaType,
                                 int width,
                                 int height,
                                 RadianceSkin skin)
        Description copied from interface: RadianceOverlayPainter
        Paints the overlay.
        Specified by:
        paintOverlay in interface RadianceOverlayPainter
        Parameters:
        graphics - Graphics context.
        comp - Component.
        decorationAreaType - Decoration area type. Must not be null.
        width - Width.
        height - Height.
        skin - Skin for painting the overlay.
      • getDisplayName

        public java.lang.String getDisplayName()
        Description copied from interface: RadianceTrait
        Returns the display name of this trait. This method is part of officially supported API.
        Specified by:
        getDisplayName in interface RadianceTrait
        Returns:
        The display name of this trait.