Class TopLineOverlayPainter
java.lang.Object
org.pushingpixels.radiance.theming.api.painter.overlay.TopLineOverlayPainter
- All Implemented Interfaces:
RadianceOverlayPainter
,RadianceTrait
Overlay painter that paints a single line at the top edge of the relevant
decoration area. This class is part of officially supported API.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ColorSchemeSingleColorQuery
Used to compute the color of the line painted by this overlay painter. -
Constructor Summary
ConstructorsConstructorDescriptionTopLineOverlayPainter
(ColorSchemeSingleColorQuery colorSchemeQuery) Creates a new overlay painter that paints a single line at the top edge of the relevant decoration area -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name ofthis
trait.void
paintOverlay
(Graphics2D g, Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin) Paints the overlay.
-
Field Details
-
colorSchemeQuery
ColorSchemeSingleColorQuery colorSchemeQueryUsed to compute the color of the line painted by this overlay painter.
-
-
Constructor Details
-
TopLineOverlayPainter
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 Details
-
paintOverlay
public void paintOverlay(Graphics2D g, Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin) Description copied from interface:RadianceOverlayPainter
Paints the overlay.- Specified by:
paintOverlay
in 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:RadianceTrait
Returns the display name ofthis
trait. This method is part of officially supported API.- Specified by:
getDisplayName
in interfaceRadianceTrait
- Returns:
- The display name of
this
trait.
-