Class HighlightPainterUtils
java.lang.Object
org.pushingpixels.radiance.theming.internal.painter.HighlightPainterUtils
Contains utility methods related to highlight painters. This class is for internal use only.
- Author:
- Kirill Grouchnikov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpaintHighlight(Graphics g, CellRendererPane rendererPane, Component c, Rectangle rect, ComponentState state, float alpha, boolean paintHighlightBorders, Set<RadianceThemingSlices.Side> openSides, ContainerColorTokens colorTokens) Paints the highlight for the specified component.static voidpaintHighlightBorder1X(Graphics2D g, Component comp, int width, int height, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceOutlinePainter highlightOutlinePainter, ContainerColorTokens colorTokens)
-
Constructor Details
-
HighlightPainterUtils
public HighlightPainterUtils()
-
-
Method Details
-
paintHighlight
public static void paintHighlight(Graphics g, CellRendererPane rendererPane, Component c, Rectangle rect, ComponentState state, float alpha, boolean paintHighlightBorders, Set<RadianceThemingSlices.Side> openSides, ContainerColorTokens colorTokens) Paints the highlight for the specified component.- Parameters:
g- Graphic context.rendererPane- Renderer pane. Can benull.c- Component.rect- Rectangle to highlight.state- Component state.alpha- Alpha.openSides- The sides specified in this set will not be painted. Can benullor empty.colorTokens- The fill tokens to use.
-
paintHighlightBorder1X
public static void paintHighlightBorder1X(Graphics2D g, Component comp, int width, int height, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceOutlinePainter highlightOutlinePainter, ContainerColorTokens colorTokens)
-