org.xnap.gui.component
Class CloseableTabbedPane.WrapperIcon

java.lang.Object
  extended by org.xnap.gui.component.CloseableTabbedPane.WrapperIcon
All Implemented Interfaces:
javax.swing.Icon
Enclosing class:
CloseableTabbedPane

protected class CloseableTabbedPane.WrapperIcon
extends java.lang.Object
implements javax.swing.Icon

Acts as a proxy class for the closing icon.


Constructor Summary
CloseableTabbedPane.WrapperIcon(java.lang.String title)
           
CloseableTabbedPane.WrapperIcon(java.lang.String title, javax.swing.Icon leftIcon)
           
 
Method Summary
 boolean contains(int xEvent, int yEvent)
          Verifies if x and y are within the icon's borders.
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Overwrites paintIcon to get hold of the coordinates of the icon.
 void setTitle(java.lang.String newTitle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableTabbedPane.WrapperIcon

public CloseableTabbedPane.WrapperIcon(java.lang.String title)

CloseableTabbedPane.WrapperIcon

public CloseableTabbedPane.WrapperIcon(java.lang.String title,
                                       javax.swing.Icon leftIcon)
Method Detail

setTitle

public void setTitle(java.lang.String newTitle)

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Overwrites paintIcon to get hold of the coordinates of the icon.

Specified by:
paintIcon in interface javax.swing.Icon

contains

public boolean contains(int xEvent,
                        int yEvent)
Verifies if x and y are within the icon's borders.



Copyright © 2001-2005 XNap Team. All Rights Reserved.