SubstanceOverlayPainter, SubstanceTraitpublic final class TopShadowOverlayPainter extends java.lang.Object implements SubstanceOverlayPainter
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getDisplayName() |
Returns the display name of
this trait. |
static TopShadowOverlayPainter |
getInstance(int strength) |
Returns an instance of top shadow overlay painter with the requested strength.
|
void |
paintOverlay(java.awt.Graphics2D graphics,
java.awt.Component comp,
SubstanceSlices.DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceSkin skin) |
Paints the overlay.
|
public static TopShadowOverlayPainter getInstance(int strength)
strength - Drop shadow strength. Must be in [0..100] range.public void paintOverlay(java.awt.Graphics2D graphics,
java.awt.Component comp,
SubstanceSlices.DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceSkin skin)
SubstanceOverlayPainterpaintOverlay in interface SubstanceOverlayPaintergraphics - Graphics context.comp - Component.decorationAreaType - Decoration area type. Must not be null.width - Width.height - Height.skin - Skin for painting the overlay.public java.lang.String getDisplayName()
SubstanceTraitthis trait. This method is part
of officially supported API.getDisplayName in interface SubstanceTraitthis trait.