Class HighlightPainterUtils


  • public class HighlightPainterUtils
    extends java.lang.Object
    Contains utility methods related to highlight painters. This class is for internal use only.
    • Constructor Detail

      • HighlightPainterUtils

        public HighlightPainterUtils()
    • Method Detail

      • paintHighlight

        public static void paintHighlight​(java.awt.Graphics g,
                                          javax.swing.CellRendererPane rendererPane,
                                          java.awt.Component c,
                                          java.awt.Rectangle rect,
                                          float borderAlpha,
                                          java.util.Set<RadianceThemingSlices.Side> openSides,
                                          RadianceColorScheme fillScheme,
                                          RadianceColorScheme borderScheme)
        Paints the highlight for the specified component.
        Parameters:
        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.
      • paintHighlightBorder1X

        public static void paintHighlightBorder1X​(java.awt.Graphics2D g,
                                                  java.awt.Component comp,
                                                  int width,
                                                  int height,
                                                  float borderAlpha,
                                                  java.util.Set<RadianceThemingSlices.Side> openSides,
                                                  RadianceBorderPainter highlightBorderPainter,
                                                  RadianceColorScheme borderScheme)
        Paints the highlight border for the specified component.
      • getBorderPath

        private static java.awt.geom.Path2D getBorderPath​(java.awt.ComponentOrientation orientation,
                                                          int width,
                                                          int height,
                                                          float insets,
                                                          java.util.Set<RadianceThemingSlices.Side> openSides)