com.jaxfront.swing.ui.layout
Class TabActionIcon

java.lang.Object
  extended by com.jaxfront.swing.ui.layout.TabActionIcon
All Implemented Interfaces:
javax.swing.Icon

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

Author:
Herkules

Field Summary
static int P_XOFFSET
           
static int P_YOFFSET
           
static java.lang.String TAB_INDEX
           
 
Constructor Summary
TabActionIcon()
          Creates a new instance of TabCloseIcon.
TabActionIcon(javax.swing.Action action)
           
TabActionIcon(javax.swing.Action action, javax.swing.Action inverseAction)
          Creates a new instance of TabCloseIcon.
TabActionIcon(javax.swing.ImageIcon icon)
          Creates a new instance of TabCloseIcon.
TabActionIcon(javax.swing.ImageIcon icon, javax.swing.ImageIcon inverseIcon)
          Creates a new instance of TabCloseIcon.
 
Method Summary
 javax.swing.Action getAction()
           
 javax.swing.ImageIcon getActiveIcon()
           
 int getIconHeight()
          just delegate
 int getIconWidth()
          just delegate
 javax.swing.Action getInverseAction()
           
 boolean isDynamicMode()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          when painting, remember last position painted.
 void setAction(javax.swing.Action action)
           
 void setDynamicMode(boolean dynamicMode)
           
 void setInverseAction(javax.swing.Action inverseAction)
           
 void setTabIndex(int index)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAB_INDEX

public static final java.lang.String TAB_INDEX
See Also:
Constant Field Values

P_XOFFSET

public static final int P_XOFFSET
See Also:
Constant Field Values

P_YOFFSET

public static final int P_YOFFSET
See Also:
Constant Field Values
Constructor Detail

TabActionIcon

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


TabActionIcon

public TabActionIcon(javax.swing.Action action,
                     javax.swing.Action inverseAction)
Creates a new instance of TabCloseIcon.


TabActionIcon

public TabActionIcon(javax.swing.Action action)

TabActionIcon

public TabActionIcon(javax.swing.ImageIcon icon,
                     javax.swing.ImageIcon inverseIcon)
Creates a new instance of TabCloseIcon.


TabActionIcon

public TabActionIcon()
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

getActiveIcon

public javax.swing.ImageIcon getActiveIcon()

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

setAction

public void setAction(javax.swing.Action action)

getAction

public javax.swing.Action getAction()

setInverseAction

public void setInverseAction(javax.swing.Action inverseAction)

getInverseAction

public javax.swing.Action getInverseAction()

setTabIndex

public void setTabIndex(int index)

setDynamicMode

public void setDynamicMode(boolean dynamicMode)

isDynamicMode

public boolean isDynamicMode()