Class TopShadowOverlayPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.overlay.TopShadowOverlayPainter
-
- All Implemented Interfaces:
SubstanceOverlayPainter,SubstanceTrait
public final class TopShadowOverlayPainter extends Object implements SubstanceOverlayPainter
Overlay painter that paints a few pixel-high drop shadow at the top edge of the relevant decoration area. This class is part of officially supported API.- Since:
- version 5.3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Returns the display name ofthistrait.static TopShadowOverlayPaintergetInstance()Returns the single instance of this class.voidpaintOverlay(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)Paints the overlay.
-
-
-
Method Detail
-
getInstance
public static TopShadowOverlayPainter getInstance()
Returns the single instance of this class.- Returns:
- Single instance of this class.
-
paintOverlay
public void paintOverlay(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)
Description copied from interface:SubstanceOverlayPainterPaints the overlay.- Specified by:
paintOverlayin interfaceSubstanceOverlayPainter- Parameters:
graphics- Graphics context.comp- Component.decorationAreaType- Decoration area type. Must not benull.width- Width.height- Height.skin- Skin for painting the overlay.
-
getDisplayName
public String getDisplayName()
Description copied from interface:SubstanceTraitReturns the display name ofthistrait. This method is part of officially supported API.- Specified by:
getDisplayNamein interfaceSubstanceTrait- Returns:
- The display name of
thistrait.
-
-