Class TwoIcon

java.lang.Object
com.github.weisj.darklaf.icons.TwoIcon
All Implemented Interfaces:
Icon

public class TwoIcon extends Object implements Icon
  • Constructor Details

    • TwoIcon

      public TwoIcon(Icon leftIcon, Icon rightIcon)
    • TwoIcon

      public TwoIcon(Icon leftIcon, Icon rightIcon, int iconGap)
  • Method Details

    • setIconGap

      public void setIconGap(int iconGap)
    • setLeftIcon

      public void setLeftIcon(Icon leftIcon)
    • setRightIcon

      public void setRightIcon(Icon rightIcon)
    • getLeftIcon

      public Icon getLeftIcon()
    • getRightIcon

      public Icon getRightIcon()
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • getIconWidth

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

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon