Class GlassHighlightPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.highlight.GlassHighlightPainter
-
- All Implemented Interfaces:
SubstanceHighlightPainter,SubstanceTrait
public class GlassHighlightPainter extends java.lang.Object implements SubstanceHighlightPainter
Highlight painter that paints a glass gradient. This class is part of officially supported API.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDISPLAY_NAMEThe display name for the highlight painters of this class.protected GlassFillPainterpainterSingle gradient painter instance.
-
Constructor Summary
Constructors Constructor Description GlassHighlightPainter()Creates new classic title painter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Returns the display name ofthistrait.voidpaintHighlight(java.awt.Graphics2D graphics, java.awt.Component comp, int width, int height, SubstanceColorScheme colorScheme)Paints the highlight.
-
-
-
Field Detail
-
DISPLAY_NAME
public static final java.lang.String DISPLAY_NAME
The display name for the highlight painters of this class.- See Also:
- Constant Field Values
-
painter
protected GlassFillPainter painter
Single gradient painter instance.
-
-
Method Detail
-
getDisplayName
public java.lang.String 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(java.awt.Graphics2D graphics, java.awt.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.
-
-