Class BottomLineOverlayPainter
- java.lang.Object
-
- org.pushingpixels.radiance.theming.api.painter.overlay.BottomLineOverlayPainter
-
- All Implemented Interfaces:
RadianceOverlayPainter,RadianceTrait
public final class BottomLineOverlayPainter extends java.lang.Object implements RadianceOverlayPainter
Overlay painter that paints a single line at the bottom edge of the relevant decoration area. This class is part of officially supported API.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ContainerColorTokensSingleColorQuerycontainerTokensQueryUsed to compute the color of the line painted by this overlay painter.
-
Constructor Summary
Constructors Constructor Description BottomLineOverlayPainter(ContainerColorTokensSingleColorQuery containerTokensQuery)Creates a new overlay painter that paints a single line at the bottom 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 g, java.awt.Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin)Paints the overlay.
-
-
-
Field Detail
-
containerTokensQuery
ContainerColorTokensSingleColorQuery containerTokensQuery
Used to compute the color of the line painted by this overlay painter.
-
-
Constructor Detail
-
BottomLineOverlayPainter
public BottomLineOverlayPainter(ContainerColorTokensSingleColorQuery containerTokensQuery)
Creates a new overlay painter that paints a single line at the bottom edge of the relevant decoration area- Parameters:
containerTokensQuery- Used to compute the color of the line painted by this overlay painter.
-
-
Method Detail
-
paintOverlay
public void paintOverlay(java.awt.Graphics2D g, java.awt.Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin)Description copied from interface:RadianceOverlayPainterPaints the overlay.- Specified by:
paintOverlayin interfaceRadianceOverlayPainter- Parameters:
g- 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:RadianceTraitReturns the display name ofthistrait. This method is part of officially supported API.- Specified by:
getDisplayNamein interfaceRadianceTrait- Returns:
- The display name of
thistrait.
-
-