Class BladeArrowButtonTransitionAwareIcon

  • All Implemented Interfaces:
    javax.swing.Icon

    public class BladeArrowButtonTransitionAwareIcon
    extends java.lang.Object
    implements javax.swing.Icon
    Transition aware implementation of arrow button icons. Used for implementing icons of combobox buttons, menus and more.
    • Constructor Detail

      • BladeArrowButtonTransitionAwareIcon

        public BladeArrowButtonTransitionAwareIcon​(javax.swing.AbstractButton button,
                                                   java.awt.Dimension iconDimension,
                                                   int orientation)
      • BladeArrowButtonTransitionAwareIcon

        public BladeArrowButtonTransitionAwareIcon​(javax.swing.JComponent component,
                                                   BladeTransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate,
                                                   java.awt.Dimension iconDimension,
                                                   int orientation)
        Creates an arrow icon.
        Parameters:
        component - Arrow button.
        orientation - Arrow icon orientation.
    • Method Detail

      • paintIcon

        public void paintIcon​(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon
      • getIconHeight

        public int getIconHeight()
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • getIconWidth

        public int getIconWidth()
        Specified by:
        getIconWidth in interface javax.swing.Icon