Class MultiIcon

java.lang.Object
com.illumon.iris.gui.util.MultiIcon
All Implemented Interfaces:
Icon

public class MultiIcon extends Object implements Icon
An implementation of Icon that renders each icon side by side. Note that this can not generate events so calling add(Icon), remove(Icon), etc. will not automatically update the component that this icon belongs to.
  • Constructor Details

    • MultiIcon

      public MultiIcon()
  • Method Details

    • indexOf

      public int indexOf(Icon icon)
      Find the index of the specified icon in the collection.
      Parameters:
      icon - The icon to search for.
      See Also:
    • remove

      public boolean remove(Icon icon)
      Remove the specified icon from this MultiIcon.
    • add

      public void add(Icon icon)
      Add the specified icon to the list of icons.
    • add

      public void add(Icon icon, int index)
      Insert the specified icon at the designated index.
      See Also:
    • removeAll

      public void removeAll()
      Remove all icons from the list.
    • 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