Class TopBezelOverlayPainter
java.lang.Object
org.pushingpixels.substance.api.painter.overlay.TopBezelOverlayPainter
- All Implemented Interfaces:
SubstanceOverlayPainter,SubstanceTrait
Overlay painter that paints a bezel line at the top edge of the relevant
decoration area. This class is part of officially supported API.
- Since:
- version 5.3
-
Constructor Summary
ConstructorsConstructorDescriptionTopBezelOverlayPainter(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
Modifier and TypeMethodDescriptionReturns the display name ofthistrait.voidpaintOverlay(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) Paints the overlay.
-
Constructor Details
-
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 Details
-
paintOverlay
public void paintOverlay(Graphics2D graphics, Component comp, DecorationAreaType decorationAreaType, int width, int height, SubstanceSkin skin) Description copied from interface:SubstanceOverlayPainterPaints the overlay.- Specified by:
paintOverlayin interfaceSubstanceOverlayPainter- Parameters:
graphics- 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:SubstanceTraitReturns the display name ofthistrait. This method is part of officially supported API.- Specified by:
getDisplayNamein interfaceSubstanceTrait- Returns:
- The display name of
thistrait.
-