kaos.kpat.applet
Class TabCloseIcon

java.lang.Object
  extended by kaos.kpat.applet.TabCloseIcon
All Implemented Interfaces:
javax.swing.Icon

public class TabCloseIcon
extends java.lang.Object
implements javax.swing.Icon

Author:
Herkules

Constructor Summary
TabCloseIcon(javax.swing.Icon icon)
          Creates a new instance of TabCloseIcon.
TabCloseIcon(javax.swing.JMenu jm, java.util.HashSet tabs)
          Creates a new instance of TabCloseIcon.
 
Method Summary
 int getIconHeight()
          just delegate
 int getIconWidth()
          just delegate
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          when painting, remember last position painted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabCloseIcon

public TabCloseIcon(javax.swing.Icon icon)
Creates a new instance of TabCloseIcon.


TabCloseIcon

public TabCloseIcon(javax.swing.JMenu jm,
                    java.util.HashSet tabs)
Creates a new instance of TabCloseIcon.

Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
when painting, remember last position painted.

Specified by:
paintIcon in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
just delegate

Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
just delegate

Specified by:
getIconHeight in interface javax.swing.Icon