Class RadianceListUI

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RadianceListUI()
      Creates a UI delegate for list.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent comp)  
      private void fadeOutRolloverIndication()
      Initiates the fade out effect.
      ComponentState getCellState​(int cellIndex, java.awt.Component rendererComponent)
      Returns the current state for the specified cell.
      StateTransitionTracker.ModelStateInfo getModelStateInfo​(int row)  
      private StateTransitionTracker getTracker​(int row, boolean initialRollover, boolean initialSelected)  
      UpdateOptimizationInfo getUpdateOptimizationInfo()  
      protected void installDefaults()  
      protected void installListeners()  
      protected void paintCell​(java.awt.Graphics g, int row, java.awt.Rectangle rowBounds, javax.swing.ListCellRenderer<java.lang.Object> cellRenderer, javax.swing.ListModel<java.lang.Object> dataModel, javax.swing.ListSelectionModel selModel, int leadIndex)  
      void resetRolloverIndex()
      Resets the rollover index.
      private void syncModelContents()  
      protected void uninstallDefaults()  
      protected void uninstallListeners()  
      void uninstallUI​(javax.swing.JComponent c)  
      void update​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicListUI

        convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installKeyboardActions, installUI, locationToIndex, maybeUpdateLayoutState, paint, selectNextIndex, selectPreviousIndex, uninstallKeyboardActions, updateLayoutState
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • selectedIndices

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

        private int rolledOverIndex
        Holds the currently rolled-over index, or -1 is there is none such.
      • radiancePropertyChangeListener

        private java.beans.PropertyChangeListener radiancePropertyChangeListener
        Property listener.
      • radianceListSelectionListener

        private javax.swing.event.ListSelectionListener radianceListSelectionListener
        Listener for transition animations on list selections.
      • radianceComponentListener

        private java.awt.event.ComponentListener radianceComponentListener
      • radianceListDataListener

        private javax.swing.event.ListDataListener radianceListDataListener
    • Constructor Detail

      • RadianceListUI

        protected RadianceListUI()
        Creates a UI delegate for list.
    • Method Detail

      • createUI

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

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicListUI
      • uninstallDefaults

        protected void uninstallDefaults()
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicListUI
      • uninstallUI

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

        protected void installListeners()
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicListUI
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicListUI
      • paintCell

        protected void paintCell​(java.awt.Graphics g,
                                 int row,
                                 java.awt.Rectangle rowBounds,
                                 javax.swing.ListCellRenderer<java.lang.Object> cellRenderer,
                                 javax.swing.ListModel<java.lang.Object> dataModel,
                                 javax.swing.ListSelectionModel selModel,
                                 int leadIndex)
        Overrides:
        paintCell in class javax.swing.plaf.basic.BasicListUI
      • getCellState

        public ComponentState getCellState​(int cellIndex,
                                           java.awt.Component rendererComponent)
        Returns the current state for the specified cell.
        Parameters:
        cellIndex - Cell index.
        rendererComponent - Renderer component for the specified cell index.
        Returns:
        The current state for the specified cell.
      • resetRolloverIndex

        public void resetRolloverIndex()
        Resets the rollover index.
      • fadeOutRolloverIndication

        private void fadeOutRolloverIndication()
        Initiates the fade out effect.
      • update

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

        private void syncModelContents()
      • getTracker

        private StateTransitionTracker getTracker​(int row,
                                                  boolean initialRollover,
                                                  boolean initialSelected)