Class BottomLineOverlayPainter
java.lang.Object
org.pushingpixels.radiance.theming.api.painter.overlay.BottomLineOverlayPainter
- All Implemented Interfaces:
RadianceOverlayPainter, RadianceTrait
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
FieldsModifier and TypeFieldDescription(package private) ContainerColorTokensSingleColorQueryUsed to compute the color of the line painted by this overlay painter. -
Constructor Summary
ConstructorsConstructorDescriptionBottomLineOverlayPainter(ContainerColorTokensSingleColorQuery containerTokensQuery) Creates a new overlay painter that paints a single line at the bottom edge of the relevant decoration area -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name ofthistrait.voidpaintOverlay(Graphics2D g, Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin) Paints the overlay.
-
Field Details
-
containerTokensQuery
ContainerColorTokensSingleColorQuery containerTokensQueryUsed to compute the color of the line painted by this overlay painter.
-
-
Constructor Details
-
BottomLineOverlayPainter
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 Details
-
paintOverlay
public void paintOverlay(Graphics2D g, 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
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.
-