SalesPoint v3.3 API

sale.multiwindow
Class IconTabbedPane.CloseTabIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by sale.multiwindow.IconTabbedPane.CloseTabIcon
All Implemented Interfaces:
Serializable, Accessible, Icon
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/interfaces 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.

Overrides:
getImage in class ImageIcon

paintIcon

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

Specified by:
paintIcon in interface Icon
Overrides:
paintIcon in class ImageIcon

getIconWidth

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

Specified by:
getIconWidth in interface Icon
Overrides:
getIconWidth in class ImageIcon

getIconHeight

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

Specified by:
getIconHeight in interface Icon
Overrides:
getIconHeight in class ImageIcon

getBounds

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


SalesPoint v3.3 API