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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Path2DgetBorderPath(ComponentOrientation orientation, int width, int height, float insets, Set<RadianceThemingSlices.Side> openSides) private static voidpaintHighlight(Graphics g, Component c, Rectangle rect, ComponentState state, float alpha, boolean paintHighlightBorders, Set<RadianceThemingSlices.Side> openSides, ContainerColorTokens colorTokens, RadianceSurfacePainter highlightPainter, RadianceOutlinePainter highlightOutlinePainter) static 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.
-
paintHighlight
private static void paintHighlight(Graphics g, Component c, Rectangle rect, ComponentState state, float alpha, boolean paintHighlightBorders, Set<RadianceThemingSlices.Side> openSides, ContainerColorTokens colorTokens, RadianceSurfacePainter highlightPainter, RadianceOutlinePainter highlightOutlinePainter) -
paintHighlightBorder1X
public static void paintHighlightBorder1X(Graphics2D g, Component comp, int width, int height, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceOutlinePainter highlightOutlinePainter, ContainerColorTokens colorTokens) -
getBorderPath
private static Path2D getBorderPath(ComponentOrientation orientation, int width, int height, float insets, Set<RadianceThemingSlices.Side> openSides)
-