Class FlatTableCellBorder

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FlatTableCellBorder.Default
      Border for unselected cell that uses margins, but does not paint focus indicator border.
      static class  FlatTableCellBorder.Focused
      Border for focused unselected cell that uses margins and paints focus indicator border.
      static class  FlatTableCellBorder.Selected
      Border for selected cell that uses margins and paints focus indicator border.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.Component c  
      protected boolean showCellFocusIndicator  
      • Fields inherited from class javax.swing.border.EmptyBorder

        bottom, left, right, top
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FlatTableCellBorder()  
    • Field Detail

      • showCellFocusIndicator

        protected boolean showCellFocusIndicator
        Since:
        2
      • c

        private java.awt.Component c
    • Constructor Detail

      • FlatTableCellBorder

        protected FlatTableCellBorder()
    • Method Detail

      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c,
                                               java.awt.Insets insets)
        Overrides:
        getBorderInsets in class FlatEmptyBorder
      • getArc

        public int getArc()
        Description copied from class: FlatLineBorder
        Returns the (unscaled) arc diameter of the border corners.
        Overrides:
        getArc in class FlatLineBorder
      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        Specified by:
        paintBorder in interface javax.swing.border.Border
        Overrides:
        paintBorder in class FlatLineBorder
      • getStyleFromTableUI

        static <T> T getStyleFromTableUI​(java.awt.Component c,
                                         java.util.function.Function<FlatTableUI,​T> f)
        Because this border is always shared for all tables, get border specific style from FlatTableUI.