Class DecorationPainterUtils


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

      • DecorationPainterUtils

        public DecorationPainterUtils()
    • Method Detail

      • setDecorationType

        public static void setDecorationType​(javax.swing.JComponent comp,
                                             RadianceThemingSlices.DecorationAreaType type)
        Sets the decoration type of the specified component.
        Parameters:
        comp - Component.
        type - Decoration type of the component and its children.
      • clearDecorationType

        public static void clearDecorationType​(javax.swing.JComponent comp)
        Clears the client properties related to the decoration area type.
        Parameters:
        comp - Component.
      • paintDecorationBackground

        public static void paintDecorationBackground​(java.awt.Graphics g,
                                                     java.awt.Component c,
                                                     boolean force)
        Paints the decoration background on the specified component. The decoration background is not painted when the force parameter is false and at least one of the following conditions holds:
        • The component is in a cell renderer.
        • The component is not showing on the screen.
        • The component is in the preview mode.
        Parameters:
        g - Graphics context.
        c - Component.
        force - If true, the painting of decoration background is enforced.