org.xnap.commons.gui
Class CloseableTabbedPane.TabTitleIcon
java.lang.Object
   org.xnap.commons.gui.CloseableTabbedPane.TabTitleIcon
org.xnap.commons.gui.CloseableTabbedPane.TabTitleIcon
- All Implemented Interfaces: 
- Icon, CloseableTabbedPane.TabTitle
- Enclosing class:
- CloseableTabbedPane
- protected class CloseableTabbedPane.TabTitleIcon 
- extends Object- implements Icon, CloseableTabbedPane.TabTitle
Provides an Icon that can displays a text that can have an icon to 
 its left and an EventIcon to its right.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CloseableTabbedPane.TabTitleIcon
public CloseableTabbedPane.TabTitleIcon(String title,
                                        Component comp,
                                        Icon leftIcon)
CloseableTabbedPane.TabTitleIcon
public CloseableTabbedPane.TabTitleIcon(String title,
                                        Component comp)
updateUI
public void updateUI()
- 
- Specified by:
- updateUIin interface- CloseableTabbedPane.TabTitle
 
- 
 
setTitle
public void setTitle(String newTitle)
- 
- Specified by:
- setTitlein interface- CloseableTabbedPane.TabTitle
 
- 
 
getTitle
public String getTitle()
- 
- Specified by:
- getTitlein interface- CloseableTabbedPane.TabTitle
 
- 
 
getIconHeight
public int getIconHeight()
- 
- Specified by:
- getIconHeightin interface- Icon
 
- 
 
getIconWidth
public int getIconWidth()
- 
- Specified by:
- getIconWidthin interface- Icon
 
- 
 
paintIcon
public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
- Overwrites paintIcon to get hold of the coordinates of the icon.
 
- 
- Specified by:
- paintIconin interface- Icon
 
- 
 
computeTextRect
protected Rectangle computeTextRect(Graphics g,
                                    int x,
                                    int y)
- 
 
- 
 
drawTitleAndRightIcon
protected void drawTitleAndRightIcon(Component c,
                                     Graphics g,
                                     int x,
                                     int y,
                                     int offset)
- 
 
- 
 
setButtonVisible
public void setButtonVisible(boolean b)
- 
- Specified by:
- setButtonVisiblein interface- CloseableTabbedPane.TabTitle
 
- 
 
disable
public void disable()
- 
- Specified by:
- disablein interface- CloseableTabbedPane.TabTitle
 
- 
 
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.