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 Path2D
getBorderPath
(ComponentOrientation orientation, int width, int height, float insets, Set<RadianceThemingSlices.Side> openSides) private static void
paintHighlight
(Graphics g, Component c, Rectangle rect, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceColorScheme fillScheme, RadianceColorScheme borderScheme, RadianceFillPainter highlightPainter, RadianceBorderPainter highlightBorderPainter) static void
paintHighlight
(Graphics g, CellRendererPane rendererPane, Component c, Rectangle rect, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceColorScheme fillScheme, RadianceColorScheme borderScheme) Paints the highlight for the specified component.static void
paintHighlightBorder1X
(Graphics2D g, Component comp, int width, int height, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceBorderPainter highlightBorderPainter, RadianceColorScheme borderScheme) Paints the highlight border for the specified component.
-
Constructor Details
-
HighlightPainterUtils
public HighlightPainterUtils()
-
-
Method Details
-
paintHighlight
public static void paintHighlight(Graphics g, CellRendererPane rendererPane, Component c, Rectangle rect, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceColorScheme fillScheme, RadianceColorScheme 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 benull
or empty.fillScheme
- The fill color scheme.borderScheme
- The border color scheme.
-
paintHighlight
private static void paintHighlight(Graphics g, Component c, Rectangle rect, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceColorScheme fillScheme, RadianceColorScheme borderScheme, RadianceFillPainter highlightPainter, RadianceBorderPainter highlightBorderPainter) -
paintHighlightBorder1X
public static void paintHighlightBorder1X(Graphics2D g, Component comp, int width, int height, float borderAlpha, Set<RadianceThemingSlices.Side> openSides, RadianceBorderPainter highlightBorderPainter, RadianceColorScheme borderScheme) Paints the highlight border for the specified component. -
getBorderPath
private static Path2D getBorderPath(ComponentOrientation orientation, int width, int height, float insets, Set<RadianceThemingSlices.Side> openSides)
-