|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.painter.utils.HighlightPainterUtils
public class HighlightPainterUtils
Contains utility methods related to highlight painters. This class is for internal use only.
| Field Summary | |
|---|---|
protected static LazyResettableHashMap<java.awt.image.BufferedImage> |
smallCache
Cache for small objects. |
| Constructor Summary | |
|---|---|
HighlightPainterUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getMemoryUsage()
Returns the memory usage string. |
static void |
paintHighlight(java.awt.Graphics g,
javax.swing.CellRendererPane rendererPane,
java.awt.Component c,
java.awt.Rectangle rect,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides,
ComponentState currState,
ComponentState prevState,
float cyclePos)
Updates the specified component with the background that matches the provided parameters. |
static void |
paintHighlight(java.awt.Graphics g,
javax.swing.CellRendererPane rendererPane,
java.awt.Component c,
java.awt.Rectangle rect,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides,
SubstanceColorScheme currScheme,
SubstanceColorScheme prevScheme,
SubstanceColorScheme currBorderScheme,
SubstanceColorScheme prevBorderScheme,
float cyclePos)
Paints the highlight for the specified component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final LazyResettableHashMap<java.awt.image.BufferedImage> smallCache
| Constructor Detail |
|---|
public HighlightPainterUtils()
| Method Detail |
|---|
public static void paintHighlight(java.awt.Graphics g,
javax.swing.CellRendererPane rendererPane,
java.awt.Component c,
java.awt.Rectangle rect,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides,
ComponentState currState,
ComponentState prevState,
float cyclePos)
g - Graphic context.rendererPane - Renderer pane. Can be null.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.currState - The current state of the component.prevState - The previous state of the component.cyclePos - Cycle position. Is used for rollover and pulsation effects.
Must be in 0..1 range.
public static void paintHighlight(java.awt.Graphics g,
javax.swing.CellRendererPane rendererPane,
java.awt.Component c,
java.awt.Rectangle rect,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides,
SubstanceColorScheme currScheme,
SubstanceColorScheme prevScheme,
SubstanceColorScheme currBorderScheme,
SubstanceColorScheme prevBorderScheme,
float cyclePos)
g - Graphic context.rendererPane - Renderer pane. Can be null.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.currScheme - The first color scheme.prevScheme - The second color scheme.currBorderScheme - The first border color scheme.prevBorderScheme - The second border color scheme.cyclePos - Cycle position. Is used for rollover and pulsation effects.
Must be in 0..1 range.public static java.lang.String getMemoryUsage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||