SubstanceHighlightPainter
, SubstanceTrait
public class GlassHighlightPainter extends java.lang.Object implements SubstanceHighlightPainter
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
DISPLAY_NAME |
The display name for the highlight painters of this class.
|
protected GlassFillPainter |
painter |
Single gradient painter instance.
|
Constructor | Description |
---|---|
GlassHighlightPainter() |
Creates new classic title painter.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getDisplayName() |
Returns the display name of
this trait. |
void |
paintHighlight(java.awt.Graphics2D graphics,
java.awt.Component comp,
int width,
int height,
SubstanceColorScheme colorScheme) |
Paints the highlight.
|
public static final java.lang.String DISPLAY_NAME
protected GlassFillPainter painter
public GlassHighlightPainter()
public java.lang.String getDisplayName()
SubstanceTrait
this
trait. This method is part
of officially supported API.getDisplayName
in interface SubstanceTrait
this
trait.public void paintHighlight(java.awt.Graphics2D graphics, java.awt.Component comp, int width, int height, SubstanceColorScheme colorScheme)
SubstanceHighlightPainter
paintHighlight
in interface SubstanceHighlightPainter
graphics
- Graphics context.comp
- Component.width
- Width.height
- Height.colorScheme
- The color scheme for painting the highlight.