Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance.painter.highlight
Class SubstanceHighlightUtils

    java.lang.Object
      org.jvnet.substance.painter.highlight.SubstanceHighlightUtils

    public class SubstanceHighlightUtils

extends java.lang.Object

Utilities for painting higlight backgrounds.

Author:
  Kirill Grouchnikov

Constructor Summary
`SubstanceHighlightUtils()`

Method Summary
`static void` | `paintHighlight(java.awt.Graphics g, java.awt.Component c, java.awt.Rectangle rect, float borderAlpha, java.util.Set<SubstanceConstants.Side> openSides, SubstanceColorScheme colorScheme1, SubstanceColorScheme colorScheme2, float cyclePos)` Updates the specified component with the background that matches the provided parameters.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SubstanceHighlightUtils

    public SubstanceHighlightUtils()

Method Detail

### paintHighlight

    public static void paintHighlight(java.awt.Graphics g,
                                      java.awt.Component c,
                                      java.awt.Rectangle rect,
                                      float borderAlpha,
                                      java.util.Set<SubstanceConstants.Side> openSides,
                                      SubstanceColorScheme colorScheme1,
                                      SubstanceColorScheme colorScheme2,
                                      float cyclePos)

  Updates the specified component with the background that matches the provided parameters.

  Parameters:
    `g` - Graphic context.
    `c` - Component.
    `rect` - Rectangle to highlight.
    `borderAlpha` - Border alpha.
    `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 pulsation effects. Must be in 0..10 range.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD