Class BasicPainter

    • Field Detail

      • _bk0

        protected java.awt.Color _bk0
      • _bk1

        protected java.awt.Color _bk1
      • _bk2

        protected java.awt.Color _bk2
      • _bk3

        protected java.awt.Color _bk3
      • _borderColor

        protected java.awt.Color _borderColor
      • V_GAP

        public static int V_GAP
        The distant from top edge of the table header to the top edge of the sort arrow.
      • H_GAP

        public static int H_GAP
        The distant from the right edge of the table header to left edge of sort arrow.
      • ARROW_TEXT_GAP

        public static int ARROW_TEXT_GAP
        The gap between the sort arrow and index text.
    • Constructor Detail

      • BasicPainter

        public BasicPainter()
    • Method Detail

      • installDefaults

        public void installDefaults()
      • uninstallDefaults

        public void uninstallDefaults()
      • paintSelectedMenu

        public void paintSelectedMenu​(javax.swing.JComponent c,
                                      java.awt.Graphics g,
                                      java.awt.Rectangle rect,
                                      int orientation,
                                      int state)
        Specified by:
        paintSelectedMenu in interface ThemePainter
      • paintMenuItemBackground

        public void paintMenuItemBackground​(javax.swing.JComponent c,
                                            java.awt.Graphics g,
                                            java.awt.Rectangle rect,
                                            int orientation,
                                            int state)
        Specified by:
        paintMenuItemBackground in interface ThemePainter
      • paintMenuItemBackground

        public void paintMenuItemBackground​(javax.swing.JComponent c,
                                            java.awt.Graphics g,
                                            java.awt.Rectangle rect,
                                            int orientation,
                                            int state,
                                            boolean showBorder)
        Specified by:
        paintMenuItemBackground in interface ThemePainter
      • paintButtonBackground

        public void paintButtonBackground​(javax.swing.JComponent c,
                                          java.awt.Graphics g,
                                          java.awt.Rectangle rect,
                                          int orientation,
                                          int state)
        Specified by:
        paintButtonBackground in interface ThemePainter
      • paintButtonBackground

        public void paintButtonBackground​(javax.swing.JComponent c,
                                          java.awt.Graphics g,
                                          java.awt.Rectangle rect,
                                          int orientation,
                                          int state,
                                          boolean showBorder)
        Specified by:
        paintButtonBackground in interface ThemePainter
      • paintBackground

        protected void paintBackground​(javax.swing.JComponent c,
                                       java.awt.Graphics g,
                                       java.awt.Rectangle rect,
                                       java.awt.Color borderColor,
                                       java.awt.Color background,
                                       int orientation)
      • paintChevronBackground

        public void paintChevronBackground​(javax.swing.JComponent c,
                                           java.awt.Graphics g,
                                           java.awt.Rectangle rect,
                                           int orientation,
                                           int state)
        Specified by:
        paintChevronBackground in interface ThemePainter
      • paintDividerBackground

        public void paintDividerBackground​(javax.swing.JComponent c,
                                           java.awt.Graphics g,
                                           java.awt.Rectangle rect,
                                           int orientation,
                                           int state)
        Specified by:
        paintDividerBackground in interface ThemePainter
      • paintCommandBarBackground

        public void paintCommandBarBackground​(javax.swing.JComponent c,
                                              java.awt.Graphics g,
                                              java.awt.Rectangle rect,
                                              int orientation,
                                              int state)
        Specified by:
        paintCommandBarBackground in interface ThemePainter
      • paintFloatingCommandBarBackground

        public void paintFloatingCommandBarBackground​(javax.swing.JComponent c,
                                                      java.awt.Graphics g,
                                                      java.awt.Rectangle rect,
                                                      int orientation,
                                                      int state)
        Specified by:
        paintFloatingCommandBarBackground in interface ThemePainter
      • paintMenuShadow

        public void paintMenuShadow​(javax.swing.JComponent c,
                                    java.awt.Graphics g,
                                    java.awt.Rectangle rect,
                                    int orientation,
                                    int state)
        Specified by:
        paintMenuShadow in interface ThemePainter
      • paintContentBackground

        public void paintContentBackground​(javax.swing.JComponent c,
                                           java.awt.Graphics g,
                                           java.awt.Rectangle rect,
                                           int orientation,
                                           int state)
        Specified by:
        paintContentBackground in interface ThemePainter
      • paintStatusBarBackground

        public void paintStatusBarBackground​(javax.swing.JComponent c,
                                             java.awt.Graphics g,
                                             java.awt.Rectangle rect,
                                             int orientation,
                                             int state)
        Specified by:
        paintStatusBarBackground in interface ThemePainter
      • paintCommandBarTitlePane

        public void paintCommandBarTitlePane​(javax.swing.JComponent c,
                                             java.awt.Graphics g,
                                             java.awt.Rectangle rect,
                                             int orientation,
                                             int state)
        Specified by:
        paintCommandBarTitlePane in interface ThemePainter
      • paintGripper

        public void paintGripper​(javax.swing.JComponent c,
                                 java.awt.Graphics g,
                                 java.awt.Rectangle rect,
                                 int orientation,
                                 int state)
        Specified by:
        paintGripper in interface ThemePainter
      • paintChevronMore

        public void paintChevronMore​(javax.swing.JComponent c,
                                     java.awt.Graphics g,
                                     java.awt.Rectangle rect,
                                     int orientation,
                                     int state)
        Specified by:
        paintChevronMore in interface ThemePainter
      • paintChevronOption

        public void paintChevronOption​(javax.swing.JComponent c,
                                       java.awt.Graphics g,
                                       java.awt.Rectangle rect,
                                       int orientation,
                                       int state)
        Specified by:
        paintChevronOption in interface ThemePainter
      • paintFloatingChevronOption

        public void paintFloatingChevronOption​(javax.swing.JComponent c,
                                               java.awt.Graphics g,
                                               java.awt.Rectangle rect,
                                               int orientation,
                                               int state)
        Specified by:
        paintFloatingChevronOption in interface ThemePainter
      • paintDockableFrameBackground

        public void paintDockableFrameBackground​(javax.swing.JComponent c,
                                                 java.awt.Graphics g,
                                                 java.awt.Rectangle rect,
                                                 int orientation,
                                                 int state)
        Specified by:
        paintDockableFrameBackground in interface ThemePainter
      • paintDockableFrameTitlePane

        public void paintDockableFrameTitlePane​(javax.swing.JComponent c,
                                                java.awt.Graphics g,
                                                java.awt.Rectangle rect,
                                                int orientation,
                                                int state)
        Specified by:
        paintDockableFrameTitlePane in interface ThemePainter
      • paintCollapsiblePaneTitlePaneBackground

        public void paintCollapsiblePaneTitlePaneBackground​(javax.swing.JComponent c,
                                                            java.awt.Graphics g,
                                                            java.awt.Rectangle rect,
                                                            int orientation,
                                                            int state)
        Specified by:
        paintCollapsiblePaneTitlePaneBackground in interface ThemePainter
      • paintCollapsiblePaneTitlePaneBackgroundEmphasized

        public void paintCollapsiblePaneTitlePaneBackgroundEmphasized​(javax.swing.JComponent c,
                                                                      java.awt.Graphics g,
                                                                      java.awt.Rectangle rect,
                                                                      int orientation,
                                                                      int state)
        Specified by:
        paintCollapsiblePaneTitlePaneBackgroundEmphasized in interface ThemePainter
      • paintCollapsiblePanesBackground

        public void paintCollapsiblePanesBackground​(javax.swing.JComponent c,
                                                    java.awt.Graphics g,
                                                    java.awt.Rectangle rect,
                                                    int orientation,
                                                    int state)
        Specified by:
        paintCollapsiblePanesBackground in interface ThemePainter
      • paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized

        public void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized​(javax.swing.JComponent c,
                                                                           java.awt.Graphics g,
                                                                           java.awt.Rectangle rect,
                                                                           int orientation,
                                                                           int state)
        Specified by:
        paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized in interface ThemePainter
      • paintCollapsiblePaneTitlePaneBackgroundPlain

        public void paintCollapsiblePaneTitlePaneBackgroundPlain​(javax.swing.JComponent c,
                                                                 java.awt.Graphics g,
                                                                 java.awt.Rectangle rect,
                                                                 int orientation,
                                                                 int state)
        Specified by:
        paintCollapsiblePaneTitlePaneBackgroundPlain in interface ThemePainter
      • paintCollapsiblePaneTitlePaneBackgroundSeparator

        public void paintCollapsiblePaneTitlePaneBackgroundSeparator​(javax.swing.JComponent c,
                                                                     java.awt.Graphics g,
                                                                     java.awt.Rectangle rect,
                                                                     int orientation,
                                                                     int state)
        Specified by:
        paintCollapsiblePaneTitlePaneBackgroundSeparator in interface ThemePainter
      • getColor

        public java.awt.Color getColor​(java.lang.Object key)
        Specified by:
        getColor in interface ThemePainter
      • paintTabAreaBackground

        public void paintTabAreaBackground​(javax.swing.JComponent c,
                                           java.awt.Graphics g,
                                           java.awt.Rectangle rect,
                                           int orientation,
                                           int state)
        Specified by:
        paintTabAreaBackground in interface ThemePainter
      • paintTabBackground

        public void paintTabBackground​(javax.swing.JComponent c,
                                       java.awt.Graphics g,
                                       java.awt.Shape region,
                                       java.awt.Color[] colors,
                                       int orientation,
                                       int state)
        Specified by:
        paintTabBackground in interface ThemePainter
      • paintTabContentBorder

        public void paintTabContentBorder​(javax.swing.JComponent c,
                                          java.awt.Graphics g,
                                          java.awt.Rectangle rect,
                                          int orientation,
                                          int state)
        Specified by:
        paintTabContentBorder in interface ThemePainter
      • paintSidePaneItemBackground

        public void paintSidePaneItemBackground​(javax.swing.JComponent c,
                                                java.awt.Graphics g,
                                                java.awt.Rectangle rect,
                                                java.awt.Color[] colors,
                                                int orientation,
                                                int state)
        Specified by:
        paintSidePaneItemBackground in interface ThemePainter
      • paintHeaderBoxBackground

        public void paintHeaderBoxBackground​(javax.swing.JComponent c,
                                             java.awt.Graphics g,
                                             java.awt.Rectangle rect,
                                             int orientation,
                                             int state)
        Specified by:
        paintHeaderBoxBackground in interface ThemePainter
      • paintToolBarSeparator

        public void paintToolBarSeparator​(javax.swing.JComponent c,
                                          java.awt.Graphics g,
                                          java.awt.Rectangle rect,
                                          int orientation,
                                          int state)
        Specified by:
        paintToolBarSeparator in interface ThemePainter
      • paintPopupMenuSeparator

        public void paintPopupMenuSeparator​(javax.swing.JComponent c,
                                            java.awt.Graphics g,
                                            java.awt.Rectangle rect,
                                            int orientation,
                                            int state)
        Specified by:
        paintPopupMenuSeparator in interface ThemePainter
      • paintStatusBarSeparator

        public void paintStatusBarSeparator​(javax.swing.JComponent c,
                                            java.awt.Graphics g,
                                            java.awt.Rectangle rect,
                                            int orientation,
                                            int state)
        Specified by:
        paintStatusBarSeparator in interface ThemePainter
      • shouldDisplayOnTop

        protected boolean shouldDisplayOnTop()
        Should the arrow be displayed on the top of the header.
        Returns:
        true to display the sort arrow on top. Otherwise false.
      • fillBackground

        public void fillBackground​(javax.swing.JComponent c,
                                   java.awt.Graphics g,
                                   java.awt.Rectangle rect,
                                   int orientation,
                                   int state,
                                   java.awt.Color color)
        Specified by:
        fillBackground in interface ThemePainter
      • getSortableTableHeaderColumnCellDecoratorInsets

        public java.awt.Insets getSortableTableHeaderColumnCellDecoratorInsets​(javax.swing.JComponent c,
                                                                               java.awt.Graphics g,
                                                                               java.awt.Rectangle rect,
                                                                               int orientation,
                                                                               int state,
                                                                               int sortOrder,
                                                                               javax.swing.Icon sortIcon,
                                                                               int orderIndex,
                                                                               java.awt.Color indexColor,
                                                                               boolean paintIndex)
        Specified by:
        getSortableTableHeaderColumnCellDecoratorInsets in interface ThemePainter
      • paintSortableTableHeaderColumn

        public void paintSortableTableHeaderColumn​(javax.swing.JComponent c,
                                                   java.awt.Graphics g,
                                                   java.awt.Rectangle rect,
                                                   int orientation,
                                                   int state,
                                                   int sortOrder,
                                                   javax.swing.Icon sortIcon,
                                                   int orderIndex,
                                                   java.awt.Color indexColor,
                                                   boolean paintIndex)
        Specified by:
        paintSortableTableHeaderColumn in interface ThemePainter