当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
WinVistaEditorTabDisplayerUI (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol.plaf
Class WinVistaEditorTabDisplayerUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.netbeans.swing.tabcontrol.TabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI
org.netbeans.swing.tabcontrol.plaf.WinVistaEditorTabDisplayerUI
public final class WinVistaEditorTabDisplayerUI
- extends BasicScrollingTabDisplayerUI
Windows Vista impl of tabs ui
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI |
createComponentListener, createHierarchyListener, createLayout, createLayoutModel, createTabState, getControlButtons, getControlButtonsRectangle, getFirstVisibleTab, getLastVisibleTab, getMinimumSize, getOffscreenGraphics, getTabAreaInsets, getTabsAreaWidth, install, installControlButtons, makeTabVisible, modelChanged, processMouseWheelEvent, scroll, uninstall |
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI |
cancelRequestAttention, createImageOfTab, createModelListener, createMouseListener, createPropertyChangeListener, createRepaintPolicy, createSelectionListener, dropIndexOfPoint, getExactTabIndication, getInsertTabIndication, getLastKnownMouseLocation, getTabCellRenderer, getTabRect, getTabsVisibleArea, isAntialiased, paint, requestAttention, tabForCoordinate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WinVistaEditorTabDisplayerUI
public WinVistaEditorTabDisplayerUI(TabDisplayer displayer)
createUI
public static ComponentUI createUI(JComponent c)
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class ComponentUI
paintBackground
public void paintBackground(Graphics g)
- Description copied from class:
BasicTabDisplayerUI
- Fill in the background of the component prior to painting the tabs. The default
implementation does nothing. If it's just a matter of filling in a background color,
setOpaque (true) on the displayer, and ComponentUI.update() will take care of the rest.
- Overrides:
paintBackground
in class BasicTabDisplayerUI
paintAfterTabs
protected void paintAfterTabs(Graphics g)
- Description copied from class:
BasicTabDisplayerUI
- Override this method to provide painting of areas outside the tabs
rectangle, such as margins and controls
- Overrides:
paintAfterTabs
in class BasicTabDisplayerUI
createDefaultRenderer
protected TabCellRenderer createDefaultRenderer()
- Description copied from class:
BasicTabDisplayerUI
- Create the default cell renderer for this control. If it is desirable to
have more than one renderer, override getTabCellRenderer()
- Specified by:
createDefaultRenderer
in class BasicTabDisplayerUI
getTabRectForRepaint
protected Rectangle getTabRectForRepaint(int tab,
Rectangle rect)
- Overrides:
getTabRectForRepaint
in class BasicTabDisplayerUI
- Returns:
- Rectangle of the tab to be repainted
getButtonIcon
public Icon getButtonIcon(int buttonId,
int buttonState)
- Specified by:
getButtonIcon
in class TabDisplayerUI