org.jvnet.substance.painter.highlight
Interface SubstanceHighlightPainter
- All Superinterfaces:
- SubstanceTrait
- All Known Implementing Classes:
- ClassicHighlightPainter, FractionBasedHighlightPainter, 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,
java.util.Set<SubstanceConstants.Side> openSides,
SubstanceColorScheme colorScheme1,
SubstanceColorScheme 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.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.