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 TypeMethodDescriptionvoid
Add the specified icon to the list of icons.void
Insert the specified icon at the designated index.int
int
int
Find the index of the specified icon in the collection.void
boolean
Remove the specified icon from this MultiIcon.void
Remove 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:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-