Class HighlightPainterUtils
- java.lang.Object
-
- org.pushingpixels.substance.internal.painter.HighlightPainterUtils
-
public class HighlightPainterUtils extends Object
Contains utility methods related to highlight painters. This class is for internal use only.
-
-
Field Summary
Fields Modifier and Type Field Description protected static LazyResettableHashMap<BufferedImage>smallCacheCache for small objects.
-
Constructor Summary
Constructors Constructor Description HighlightPainterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetMemoryUsage()Returns the memory usage string.static voidpaintHighlight(Graphics g, CellRendererPane rendererPane, Component c, Rectangle rect, float borderAlpha, Set<SubstanceConstants.Side> openSides, SubstanceColorScheme fillScheme, SubstanceColorScheme borderScheme)Paints the highlight for the specified component.
-
-
-
Field Detail
-
smallCache
protected static final LazyResettableHashMap<BufferedImage> smallCache
Cache for small objects.
-
-
Method Detail
-
paintHighlight
public static void paintHighlight(Graphics g, CellRendererPane rendererPane, Component c, Rectangle rect, float borderAlpha, Set<SubstanceConstants.Side> openSides, SubstanceColorScheme fillScheme, SubstanceColorScheme borderScheme)
Paints the highlight for the specified component.- Parameters:
g- Graphic context.rendererPane- Renderer pane. Can benull.c- Component.rect- Rectangle to highlight.borderAlpha- Border alpha.openSides- The sides specified in this set will not be painted. Can benullor empty.fillScheme- The fill color scheme.borderScheme- The border color scheme.
-
getMemoryUsage
public static String getMemoryUsage()
Returns the memory usage string.- Returns:
- Memory usage string.
-
-