Class TopBezelOverlayPainter
java.lang.Object
org.pushingpixels.radiance.theming.api.painter.overlay.TopBezelOverlayPainter
- All Implemented Interfaces:
RadianceOverlayPainter, RadianceTrait
Overlay painter that paints a bezel line at the top edge of the relevant
decoration area. This class is part of officially supported API.
- Author:
- Kirill Grouchnikov
-
Constructor Summary
ConstructorsConstructorDescriptionTopBezelOverlayPainter(ContainerColorTokensSingleColorQuery colorTokensQueryTop, ContainerColorTokensSingleColorQuery colorTokensQueryBottom) Creates a new overlay painter that paints a bezel line at the top 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.
-
Constructor Details
-
TopBezelOverlayPainter
public TopBezelOverlayPainter(ContainerColorTokensSingleColorQuery colorTokensQueryTop, ContainerColorTokensSingleColorQuery colorTokensQueryBottom) Creates a new overlay painter that paints a bezel line at the top edge of the relevant decoration area- Parameters:
colorTokensQueryTop- Used to compute the color of the top line painted by this overlay painter.colorTokensQueryBottom- Used to compute the color of the bottom 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.
-