SalesPoint Framework v3.1

sale.multiwindow
Class IconTabbedPane.CloseTabIcon

java.lang.Object
  extended byjavax.swing.ImageIcon
      extended bysale.multiwindow.IconTabbedPane.CloseTabIcon
All Implemented Interfaces:
Accessible, Icon, Serializable
Enclosing class:
IconTabbedPane

protected class IconTabbedPane.CloseTabIcon
extends ImageIcon

Extends ImageIcon by method getBounds to make it possible to determine the coordinates of the icon on the screen.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
 
Field Summary
 
Fields inherited from class javax.swing.ImageIcon
component, tracker
 
Constructor Summary
IconTabbedPane.CloseTabIcon(ImageIcon icon)
          Creates a CloseTabIcon from an ImageIcon.
 
Method Summary
 Rectangle getBounds()
          Returns the position of the icon on the screen.
 int getIconHeight()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 Image getImage()
          Returns the image of the ImageIcon.
 void paintIcon(Component c, Graphics g, int x, int y)
          Paints the Icon.
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, 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

IconTabbedPane.CloseTabIcon

public IconTabbedPane.CloseTabIcon(ImageIcon icon)
Creates a CloseTabIcon from an ImageIcon.

Method Detail

getImage

public Image getImage()
Returns the image of the ImageIcon.


paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Paints the Icon. This method is usually not called directly.


getIconWidth

public int getIconWidth()
Returns the icon's width.


getIconHeight

public int getIconHeight()
Returns the icon's height.


getBounds

public Rectangle getBounds()
Returns the position of the icon on the screen. Used to check for mouse clicks on the icon.


SalesPoint Framework v3.1