public interface SubstanceHighlightPainter extends SubstanceTrait
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDisplayNamevoid 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)
graphics - Graphics context.comp - Component.width - Width.height - Height.borderAlpha - Border alpha factor.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.borderColorScheme1 - The first border color scheme.borderColorScheme2 - The second border color scheme.cyclePos - Cycle position. Is used for rollover and selection animations.
Must be in 0..1 range.