当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
MetalViewTabDisplayerUI (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol.plaf
Class MetalViewTabDisplayerUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.netbeans.swing.tabcontrol.TabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.MetalViewTabDisplayerUI
public final class MetalViewTabDisplayerUI
- extends AbstractViewTabDisplayerUI
User interface of view type tabs designed to be consistent with Swing metal
look and feel.
Method Summary |
static ComponentUI |
createUI(JComponent c)
|
Icon |
getButtonIcon(int buttonId,
int buttonState)
|
Dimension |
getPreferredSize(JComponent c)
|
void |
paint(Graphics g,
JComponent c)
Overrides basic paint mathod, adds painting of overall blue or gray
bottom area, depending on activation status value |
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)
|
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI |
cancelRequestAttention, createController, createImageOfTab, createRepaintPolicy, createSelectionModel, dropIndexOfPoint, getControlButtons, getController, getDataModel, getDisplayer, getExactTabIndication, getInsertTabIndication, getLayoutModel, getSelectionModel, getTabRect, getTxtFont, getTxtFontMetrics, installControlButtons, installUI, isActive, isAttention, isFocused, isSelected, 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)
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class ComponentUI
paint
public void paint(Graphics g,
JComponent c)
- Overrides basic paint mathod, adds painting of overall blue or gray
bottom area, depending on activation status value
- Overrides:
paint
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
getButtonIcon
public Icon getButtonIcon(int buttonId,
int buttonState)
- Specified by:
getButtonIcon
in class TabDisplayerUI