public class ClassicHighlightPainter extends java.lang.Object implements SubstanceHighlightPainter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISPLAY_NAME
The display name for the highlight painters of this class.
|
protected ClassicGradientPainter |
painter
Single gradient painter instance.
|
Constructor and Description |
---|
ClassicHighlightPainter()
Creates new classic title painter.
|
Modifier and Type | Method and 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,
java.util.Set<SubstanceConstants.Side> openSides,
SubstanceColorScheme colorScheme1,
SubstanceColorScheme colorScheme2,
float cyclePos)
Paints the highlight.
|
public static final java.lang.String DISPLAY_NAME
protected ClassicGradientPainter painter
public ClassicHighlightPainter()
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, java.util.Set<SubstanceConstants.Side> openSides, SubstanceColorScheme colorScheme1, SubstanceColorScheme colorScheme2, float cyclePos)
SubstanceHighlightPainter
paintHighlight
in interface SubstanceHighlightPainter
graphics
- Graphics context.comp
- Component.width
- Width.height
- Height.openSides
- The sides specified in this set will not be painted. Can be
null
or empty.colorScheme1
- The first color scheme.colorScheme2
- The second color scheme.cyclePos
- Cycle position. Is used for rollover and selection animations.
Must be in 0..1 range.