org.netbeans.swing.tabcontrol.plaf
Class WinXPViewTabDisplayerUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.netbeans.swing.tabcontrol.TabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.WinXPViewTabDisplayerUI
public final class WinXPViewTabDisplayerUI
- extends AbstractViewTabDisplayerUI
Win XP-like user interface of view type tabs.
|
Method Summary |
protected AbstractViewTabDisplayerUI.Controller |
createController()
|
static ComponentUI |
createUI(JComponent c)
|
Icon |
getButtonIcon(int buttonId,
int buttonState)
|
Dimension |
getPreferredSize(JComponent c)
|
protected Font |
getTxtFont()
Override to bold font |
void |
installUI(JComponent c)
|
protected void |
paintDisplayerBackground(Graphics g,
JComponent c)
Paint the background when using non-stretching tabs. |
protected void |
paintTabBackground(Graphics g,
int index,
int x,
int y,
int width,
int height)
|
protected void |
paintTabBorder(Graphics g,
int index,
int x,
int y,
int width,
int height)
|
protected void |
paintTabContent(Graphics g,
int index,
String text,
int x,
int y,
int width,
int height)
|
void |
postTabAction(TabActionEvent e)
|
| Methods inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI |
cancelRequestAttention, createImageOfTab, createLayoutModel, createRepaintPolicy, createSelectionModel, dropIndexOfPoint, getControlButtons, getController, getDataModel, getDisplayer, getExactTabIndication, getInsertTabIndication, getLayoutModel, getMinimumSize, getSelectionModel, getTabRect, getTxtFontMetrics, installControlButtons, isActive, isAttention, isFocused, isSelected, paint, registerShortcuts, requestAttention, tabForCoordinate, uninstallUI, unregisterShortcuts |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- Overrides:
installUI in class AbstractViewTabDisplayerUI
createController
protected AbstractViewTabDisplayerUI.Controller createController()
- Overrides:
createController in class AbstractViewTabDisplayerUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize in class ComponentUI
paintDisplayerBackground
protected void paintDisplayerBackground(Graphics g,
JComponent c)
- Description copied from class:
AbstractViewTabDisplayerUI
- Paint the background when using non-stretching tabs.
- Overrides:
paintDisplayerBackground in class AbstractViewTabDisplayerUI
paintTabContent
protected void paintTabContent(Graphics g,
int index,
String text,
int x,
int y,
int width,
int height)
- Specified by:
paintTabContent in class AbstractViewTabDisplayerUI
paintTabBorder
protected void paintTabBorder(Graphics g,
int index,
int x,
int y,
int width,
int height)
- Specified by:
paintTabBorder in class AbstractViewTabDisplayerUI
paintTabBackground
protected void paintTabBackground(Graphics g,
int index,
int x,
int y,
int width,
int height)
- Specified by:
paintTabBackground in class AbstractViewTabDisplayerUI
getTxtFont
protected Font getTxtFont()
- Override to bold font
- Overrides:
getTxtFont in class AbstractViewTabDisplayerUI
getButtonIcon
public Icon getButtonIcon(int buttonId,
int buttonState)
- Overrides:
getButtonIcon in class TabDisplayerUI
- Returns:
- An icon for various buttons displayed in tab control (close/pin/scroll left/right etc), see TabControlButton class.
postTabAction
public void postTabAction(TabActionEvent e)
- Overrides:
postTabAction in class TabDisplayerUI