public final class BottomLineOverlayPainter extends java.lang.Object implements SubstanceOverlayPainter
Constructor and Description |
---|
BottomLineOverlayPainter(ColorSchemeSingleColorQuery colorSchemeQuery)
Creates a new overlay painter that paints a single line at the bottom
edge of the relevant decoration area
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Returns the display name of
this trait. |
void |
paintOverlay(java.awt.Graphics2D graphics,
java.awt.Component comp,
DecorationAreaType decorationAreaType,
int width,
int height,
SubstanceSkin skin)
Paints the overlay.
|
public BottomLineOverlayPainter(ColorSchemeSingleColorQuery colorSchemeQuery)
colorSchemeQuery
- Used to compute the color of the line painted by this overlay
painter.public void paintOverlay(java.awt.Graphics2D graphics, java.awt.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 java.lang.String getDisplayName()
SubstanceTrait
this
trait. This method is part
of officially supported API.getDisplayName
in interface SubstanceTrait
this
trait.