Class GlassHighlightPainter
java.lang.Object
org.pushingpixels.substance.api.painter.highlight.GlassHighlightPainter
- All Implemented Interfaces:
SubstanceHighlightPainter,SubstanceTrait
Highlight painter that paints a glass gradient. This class is part of
officially supported API.
- Since:
- version 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe display name for the highlight painters of this class.protected GlassFillPainterSingle gradient painter instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name ofthistrait.voidpaintHighlight(Graphics2D graphics, Component comp, int width, int height, SubstanceColorScheme colorScheme) Paints the highlight.
-
Field Details
-
DISPLAY_NAME
The display name for the highlight painters of this class.- See Also:
-
painter
Single gradient painter instance.
-
-
Constructor Details
-
GlassHighlightPainter
public GlassHighlightPainter()Creates new classic title painter.
-
-
Method Details
-
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.
-
paintHighlight
public void paintHighlight(Graphics2D graphics, Component comp, int width, int height, SubstanceColorScheme colorScheme) Description copied from interface:SubstanceHighlightPainterPaints the highlight.- Specified by:
paintHighlightin interfaceSubstanceHighlightPainter- Parameters:
graphics- Graphics context.comp- Component.width- Width.height- Height.colorScheme- The color scheme for painting the highlight.
-