public class HighlightPainterUtils extends Object
Modifier and Type | Field | Description |
---|---|---|
protected static LazyResettableHashMap<BufferedImage> |
smallCache |
Cache for small objects.
|
Constructor | Description |
---|---|
HighlightPainterUtils() |
Modifier and Type | Method | Description |
---|---|---|
static String |
getMemoryUsage() |
Returns the memory usage string.
|
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.
|
protected static final LazyResettableHashMap<BufferedImage> smallCache
public static void paintHighlight(Graphics g, CellRendererPane rendererPane, Component c, Rectangle rect, float borderAlpha, Set<SubstanceConstants.Side> openSides, SubstanceColorScheme fillScheme, SubstanceColorScheme borderScheme)
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.public static String getMemoryUsage()