Class TopBezelOverlayPainter
- java.lang.Object
-
- org.pushingpixels.radiance.theming.api.painter.overlay.TopBezelOverlayPainter
-
- All Implemented Interfaces:
RadianceOverlayPainter
,RadianceTrait
public final class TopBezelOverlayPainter extends java.lang.Object implements RadianceOverlayPainter
Overlay painter that paints a bezel line at the top edge of the relevant decoration area. This class is part of officially supported API.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ColorSchemeSingleColorQuery
colorSchemeQueryBottom
Used to compute the color of the bottom line painted by this overlay painter.(package private) ColorSchemeSingleColorQuery
colorSchemeQueryTop
Used to compute the color of the top line painted by this overlay painter.
-
Constructor Summary
Constructors Constructor Description TopBezelOverlayPainter(ColorSchemeSingleColorQuery colorSchemeQueryTop, ColorSchemeSingleColorQuery colorSchemeQueryBottom)
Creates a new overlay painter that paints a bezel 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.String
getDisplayName()
Returns the display name ofthis
trait.void
paintOverlay(java.awt.Graphics2D g, java.awt.Component comp, RadianceThemingSlices.DecorationAreaType decorationAreaType, int width, int height, RadianceSkin skin)
Paints the overlay.
-
-
-
Field Detail
-
colorSchemeQueryTop
ColorSchemeSingleColorQuery colorSchemeQueryTop
Used to compute the color of the top line painted by this overlay painter.
-
colorSchemeQueryBottom
ColorSchemeSingleColorQuery colorSchemeQueryBottom
Used to compute the color of the bottom line painted by this overlay painter.
-
-
Constructor Detail
-
TopBezelOverlayPainter
public TopBezelOverlayPainter(ColorSchemeSingleColorQuery colorSchemeQueryTop, ColorSchemeSingleColorQuery colorSchemeQueryBottom)
Creates a new overlay painter that paints a bezel line at the top edge of the relevant decoration area- Parameters:
colorSchemeQueryTop
- Used to compute the color of the top line painted by this overlay painter.colorSchemeQueryBottom
- Used to compute the color of the top 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: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
public java.lang.String 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.
-
-