Class TopLineOverlayPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.overlay.TopLineOverlayPainter
-
- All Implemented Interfaces:
SubstanceOverlayPainter,SubstanceTrait
public final class TopLineOverlayPainter extends java.lang.Object implements SubstanceOverlayPainter
Overlay painter that paints a single line at the top edge of the relevant decoration area. This class is part of officially supported API.
-
-
Constructor Summary
Constructors Constructor Description TopLineOverlayPainter(ColorSchemeSingleColorQuery colorSchemeQuery)Creates a new overlay painter that paints a single line at the top edge of the relevant decoration area
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Returns the display name ofthistrait.voidpaintOverlay(java.awt.Graphics2D graphics, java.awt.Component comp, SubstanceSlices.DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)Paints the overlay.
-
-
-
Constructor Detail
-
TopLineOverlayPainter
public TopLineOverlayPainter(ColorSchemeSingleColorQuery colorSchemeQuery)
Creates a new overlay painter that paints a single line at the top edge of the relevant decoration area- Parameters:
colorSchemeQuery- Used to compute the color of the line painted by this overlay painter.
-
-
Method Detail
-
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.
-
-