Package resources
Class MultiIcon
java.lang.Object
resources.MultiIcon
- All Implemented Interfaces:
Icon
Icon class for for displaying overlapping icons. Icons are drawn in the order they
are added.
-
Constructor Summary
ConstructorDescriptionConstructs a new MultiIcon with an initial base icon that will always be drawn first.Constructs a new MultiIcon with an initial base icon that will always be drawn first.Construct a new MultiIcon with a predetermined sizeConstruct a new MultiIcon with the provided base image and subsequent images -
Method Summary
-
Constructor Details
-
MultiIcon
Constructs a new MultiIcon with an initial base icon that will always be drawn first.- Parameters:
baseIcon
- the base icon that will always be drawn first.
-
MultiIcon
Constructs a new MultiIcon with an initial base icon that will always be drawn first.- Parameters:
baseIcon
- the base icon that will always be drawn first.
-
MultiIcon
Construct a new MultiIcon with the provided base image and subsequent images- Parameters:
baseIcon
- base image always drawn firsticons
- images drawn atop the base
-
MultiIcon
Construct a new MultiIcon with a predetermined size- Parameters:
baseIcon
- Primary icon that is always drawn firstdisabled
- flag to draw this icon in a disabled statewidth
- horizontal dimension of this iconheight
- vertical dimension of this icon
-
-
Method Details
-
addIcon
Adds an icon that is to be drawn on top of the base icon and any other icons that have been added.- Parameters:
icon
- the icon to be added.
-
getDescription
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
- See Also:
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
- See Also:
-
paintIcon
-
getIcons
Return array of Icons that were added to this MultIcon. -
toString
-