se.cambio.cds.gdl.editor.view.util
Class MultipleIcon
java.lang.Object
javax.swing.ImageIcon
se.cambio.cds.gdl.editor.view.util.MultipleIcon
- All Implemented Interfaces:
- Serializable, Accessible, Icon
public class MultipleIcon
- extends ImageIcon
- Author:
- icorram
- See Also:
- Serialized Form
Constructor Summary |
MultipleIcon(Icon[] fileIcons)
Creates a new instance of CloseTabIcon |
MultipleIcon
public MultipleIcon(Icon[] fileIcons)
- Creates a new instance of
CloseTabIcon
- Parameters:
fileIcons
- the additional fileicons, if there is one set
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Draw the icon at the specified location. Icon implementations may use the
Component argument to get properties useful for painting, e.g. the
foreground or background color.
- Specified by:
paintIcon
in interface Icon
- Overrides:
paintIcon
in class ImageIcon
- Parameters:
c
- the component which the icon belongs tog
- the graphic object to draw onx
- the upper left point of the icon in the x directiony
- the upper left point of the icon in the y direction
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
- Overrides:
getIconWidth
in class ImageIcon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
- Overrides:
getIconHeight
in class ImageIcon
Copyright © 2013 Cambio. All Rights Reserved.