Class GlassHighlightPainter
- java.lang.Object
-
- org.pushingpixels.substance.api.painter.highlight.GlassHighlightPainter
-
- All Implemented Interfaces:
SubstanceHighlightPainter
,SubstanceTrait
public class GlassHighlightPainter extends Object implements SubstanceHighlightPainter
Highlight painter that paints a glass gradient. This class is part of officially supported API.- Since:
- version 4.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISPLAY_NAME
The display name for the highlight painters of this class.protected GlassFillPainter
painter
Single 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 String
getDisplayName()
Returns the display name ofthis
trait.void
paintHighlight(Graphics2D graphics, Component comp, int width, int height, SubstanceColorScheme colorScheme)
Paints the highlight.
-
-
-
Field Detail
-
DISPLAY_NAME
public static final 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 String getDisplayName()
Description copied from interface:SubstanceTrait
Returns the display name ofthis
trait. This method is part of officially supported API.- Specified by:
getDisplayName
in interfaceSubstanceTrait
- Returns:
- The display name of
this
trait.
-
paintHighlight
public void paintHighlight(Graphics2D graphics, Component comp, int width, int height, SubstanceColorScheme colorScheme)
Description copied from interface:SubstanceHighlightPainter
Paints the highlight.- Specified by:
paintHighlight
in interfaceSubstanceHighlightPainter
- Parameters:
graphics
- Graphics context.comp
- Component.width
- Width.height
- Height.colorScheme
- The color scheme for painting the highlight.
-
-