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,
                                          ComponentState state,
                                          float alpha,
                                          boolean paintHighlightBorders,
                                          java.util.Set<RadianceThemingSlices.Side> openSides,
                                          ContainerColorTokens colorTokens)
        Paints the highlight for the specified component.
        Parameters:
        g - Graphic context.
        rendererPane - Renderer pane. Can be null.
        c - Component.
        rect - Rectangle to highlight.
        state - Component state.
        alpha - Alpha.
        openSides - The sides specified in this set will not be painted. Can be null or empty.
        colorTokens - The fill tokens to use.
      • getBorderPath

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