Package jadex.commons.gui
Class CombiIcon
- java.lang.Object
-
- jadex.commons.gui.CombiIcon
-
- All Implemented Interfaces:
javax.swing.Icon
public class CombiIcon extends java.lang.Object implements javax.swing.Icon
Icon that can combine multiple images.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.Icon[]
icons
The icons to be displayed.
-
Constructor Summary
Constructors Constructor Description CombiIcon(javax.swing.Icon[] icons)
Create a combio icon from the given icons.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
Get the max height of the icons.int
getIconWidth()
Get the max width of the icons.static void
main(java.lang.String[] args)
void
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
Paint the icons.
-
-
-
Method Detail
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
Paint the icons.- Specified by:
paintIcon
in interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
Get the max width of the icons.- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
Get the max height of the icons.- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
main
public static void main(java.lang.String[] args)
-
-