se.cambio.cds.formgen.view.util
Class MultipleIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by se.cambio.cds.formgen.view.util.MultipleIcon
All Implemented Interfaces:
Serializable, Accessible, Icon

public class MultipleIcon
extends ImageIcon

Author:
icorram
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
 
Field Summary
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
MultipleIcon(Icon[] fileIcons)
          Creates a new instance of CloseTabIcon
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
          Draw the icon at the specified location.
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultipleIcon

public MultipleIcon(Icon[] fileIcons)
Creates a new instance of CloseTabIcon

Parameters:
fileIcons - the additional fileicons, if there is one set
Method Detail

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 to
g - the graphic object to draw on
x - the upper left point of the icon in the x direction
y - 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.