org.pushingpixels.substance.internal.painter
Class HighlightPainterUtils

java.lang.Object
  extended by org.pushingpixels.substance.internal.painter.HighlightPainterUtils

public class HighlightPainterUtils
extends java.lang.Object

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, SubstanceColorScheme fillScheme, SubstanceColorScheme borderScheme)
          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

smallCache

protected static final LazyResettableHashMap<java.awt.image.BufferedImage> smallCache
Cache for small objects.

Constructor Detail

HighlightPainterUtils

public HighlightPainterUtils()
Method Detail

paintHighlight

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 fillScheme,
                                  SubstanceColorScheme borderScheme)
Paints the highlight for the specified component.

Parameters:
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.
fillScheme - The fill color scheme.
borderScheme - The border color scheme.

getMemoryUsage

public static java.lang.String getMemoryUsage()
Returns the memory usage string.

Returns:
Memory usage string.