Package com.illumon.iris.gui.util
Class MultiIcon
java.lang.Object
com.illumon.iris.gui.util.MultiIcon
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the specified icon to the list of icons.voidInsert the specified icon at the designated index.intintintFind the index of the specified icon in the collection.voidbooleanRemove the specified icon from this MultiIcon.voidRemove all icons from the list.
-
Constructor Details
-
MultiIcon
public MultiIcon()
-
-
Method Details
-
indexOf
Find the index of the specified icon in the collection.- Parameters:
icon- The icon to search for.- See Also:
-
remove
Remove the specified icon from this MultiIcon. -
add
Add the specified icon to the list of icons. -
add
Insert the specified icon at the designated index.- See Also:
-
removeAll
public void removeAll()Remove all icons from the list. -
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-