Class RadianceTableHeaderUI


  • public class RadianceTableHeaderUI
    extends javax.swing.plaf.basic.BasicTableHeaderUI
    UI for table headers in Radiance look and feel.
    • Field Detail

      • defaultHeaderRenderer

        private javax.swing.table.TableCellRenderer defaultHeaderRenderer
        The default renderer.
      • selectedIndices

        private java.util.Map<java.lang.Integer,​java.lang.Object> selectedIndices
        Holds the list of currently selected indices.
      • radianceFadeSelectionListener

        private javax.swing.event.ListSelectionListener radianceFadeSelectionListener
        Listener for transition animations on list selections.
      • radiancePropertyChangeListener

        private java.beans.PropertyChangeListener radiancePropertyChangeListener
        Property change listener.
    • Constructor Detail

      • RadianceTableHeaderUI

        protected RadianceTableHeaderUI()
        Creates a new UI delegate.
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent comp)
      • installListeners

        protected void installListeners()
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicTableHeaderUI
      • installDefaults

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicTableHeaderUI
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicTableHeaderUI
      • uninstallDefaults

        protected void uninstallDefaults()
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicTableHeaderUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicTableHeaderUI
      • getHeaderRenderer

        private java.awt.Component getHeaderRenderer​(int columnIndex)
        Retrieves renderer for the specified column header.
        Parameters:
        columnIndex - Column index.
        Returns:
        Renderer for the specified column header.
      • paintGrid

        protected void paintGrid​(java.awt.Graphics g)
      • hasTrailingVerticalGridLine

        private boolean hasTrailingVerticalGridLine​(javax.swing.table.JTableHeader tableHeader,
                                                    java.awt.Rectangle cellRect,
                                                    int column)
      • hasLeadingVerticalGridLine

        private boolean hasLeadingVerticalGridLine​(javax.swing.table.JTableHeader tableHeader,
                                                   int column)
      • getGridColor

        protected static java.awt.Color getGridColor​(javax.swing.table.JTableHeader header)
        Returns the grid color for the table header.
        Parameters:
        header - Table header.
        Returns:
        Grid color.
      • paintCell

        private void paintCell​(java.awt.Graphics g,
                               java.awt.Rectangle cellRect,
                               int columnIndex)
        Paints cell.
        Parameters:
        g - Graphic context.
        cellRect - Cell rectangle.
        columnIndex - Column index.
      • viewIndexForColumn

        private int viewIndexForColumn​(javax.swing.table.TableColumn aColumn)
        Retrieves view index for the specified column.
        Parameters:
        aColumn - Table column.
        Returns:
        View index for the specified column.
      • update

        public void update​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.ComponentUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.basic.BasicTableHeaderUI
      • getColumnState

        public ComponentState getColumnState​(int columnIndex)
        Returns the current state for the specified cell.
        Parameters:
        columnIndex - Column index.
        Returns:
        The current state for the specified column.
      • getScrollPaneCornerFiller

        public javax.swing.JComponent getScrollPaneCornerFiller()
        Returns the scroll pane corner filler component. This method is used in RadianceScrollPaneUI to put a consistent filler for tables.
        Returns:
        Scroll pane corner filler.
      • processColumnModelChangeEvent

        public void processColumnModelChangeEvent​(javax.swing.table.TableColumnModel oldModel,
                                                  javax.swing.table.TableColumnModel newModel)
        Processes the events on model changes on the table column model.
        Parameters:
        oldModel - Old column model.
        newModel - New column model.
      • getTracker

        public StateTransitionTracker getTracker​(int columnIndex,
                                                 boolean initialRollover,
                                                 boolean initialSelected)