org.jvnet.substance.painter.highlight
Interface SubstanceHighlightPainter
- All Superinterfaces:
- SubstanceTrait
- All Known Implementing Classes:
- ClassicHighlightPainter, GlassHighlightPainter
public interface SubstanceHighlightPainter
- extends SubstanceTrait
Highlight painter interface for Substance look and feel. This class
is part of officially supported API.
- Since:
- version 4.3
- Author:
- Kirill Grouchnikov
paintHighlight
void paintHighlight(java.awt.Graphics2D graphics,
java.awt.Component comp,
int width,
int height,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides,
ColorScheme colorScheme1,
ColorScheme colorScheme2,
float cyclePos)
- Paints the highlight.
- Parameters:
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.cyclePos - Cycle position. Is used for rollover and selection animations.
Must be in 0..10 range.