SubstanceOverlayPainter
, SubstanceTrait
public final class TopBezelOverlayPainter extends Object implements SubstanceOverlayPainter
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
|
Modifier and Type | Method | Description |
---|---|---|
String |
getDisplayName() |
Returns the display name of
this trait. |
void |
paintOverlay(Graphics2D graphics,
Component comp,
DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceSkin skin) |
Paints the overlay.
|
public TopBezelOverlayPainter(ColorSchemeSingleColorQuery colorSchemeQueryTop, ColorSchemeSingleColorQuery colorSchemeQueryBottom)
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.public void paintOverlay(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin)
SubstanceOverlayPainter
paintOverlay
in interface SubstanceOverlayPainter
graphics
- Graphics context.comp
- Component.decorationAreaType
- Decoration area type. Must not be null
.width
- Width.height
- Height.skin
- Skin for painting the overlay.public String getDisplayName()
SubstanceTrait
this
trait. This method is part
of officially supported API.getDisplayName
in interface SubstanceTrait
this
trait.