Class RadianceCommandButtonUI

    • Constructor Detail

      • RadianceCommandButtonUI

        RadianceCommandButtonUI​(JCommandButton button)
        Creates a new UI delegate for command button.
        Parameters:
        button - command button
    • Method Detail

      • createUI

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

        public void fireRolloverActionPerformed​(java.awt.event.ActionEvent e)
        Fires the rollover action on all registered handlers.
        Parameters:
        e - Event object.
      • trackGlowingIcon

        private void trackGlowingIcon()
        Tracks possible usage of glowing icon.
      • paintButtonBackground

        private void paintButtonBackground​(java.awt.Graphics graphics)
      • paintButtonIconRegular

        private void paintButtonIconRegular​(java.awt.Graphics g,
                                            java.awt.Rectangle iconRect,
                                            java.awt.Color textColor)
      • paintButtonIcon

        protected void paintButtonIcon​(java.awt.Graphics g,
                                       java.awt.Rectangle iconRect,
                                       java.awt.Color textColor)
      • paintButtonHorizontalSeparator

        private void paintButtonHorizontalSeparator​(java.awt.Graphics graphics,
                                                    java.awt.Rectangle separatorArea)
      • paintButtonVerticalSeparator

        private void paintButtonVerticalSeparator​(java.awt.Graphics graphics,
                                                  java.awt.Rectangle separatorArea)
      • isPaintingSeparators

        protected boolean isPaintingSeparators()
        Description copied from class: BasicCommandButtonUI
        Returns indication whether the action-popup areas separator is painted.
        Overrides:
        isPaintingSeparators in class BasicCommandButtonUI
        Returns:
        true if the action-popup areas separator is painted.
      • paint

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

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

        private void paintPopupActionIcon​(java.awt.Graphics g,
                                          java.awt.Rectangle popupActionRect)
      • getSeparatorAlpha

        private float getSeparatorAlpha()
        Computes the alpha value for painting the separators.
        Returns:
        Alpha value for painting the separators.
      • isInside

        public boolean isInside​(java.awt.event.MouseEvent me)
        Description copied from interface: TransitionAwareUI
        Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.
        Specified by:
        isInside in interface TransitionAwareUI
        Parameters:
        me - Mouse event.
        Returns:
        true if the mouse position of the specified event lies inside the area of the component designated for transition effects, false otherwise.