Class BottomShadowOverlayPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.overlay.BottomShadowOverlayPainter
-
- All Implemented Interfaces:
SubstanceOverlayPainter,SubstanceTrait
public final class BottomShadowOverlayPainter extends java.lang.Object implements SubstanceOverlayPainter
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Returns the display name ofthistrait.static BottomShadowOverlayPaintergetInstance()Returns the single instance of this class.static BottomShadowOverlayPaintergetInstance(int strength)Returns an instance of bottom shadow overlay painter with the requested strength.voidpaintOverlay(java.awt.Graphics2D graphics, java.awt.Component comp, SubstanceSlices.DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)Paints the overlay.
-
-
-
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, SubstanceSlices.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 java.lang.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.
-
-