当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
MetalEditorTabDisplayerUI (Tab Control) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.tabcontrol.plaf
Class MetalEditorTabDisplayerUI
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.MetalEditorTabDisplayerUI
public final class MetalEditorTabDisplayerUI
- extends BasicScrollingTabDisplayerUI
Tab displayer UI for Metal look and feel
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI |
createComponentListener, createHierarchyListener, createLayout, createLayoutModel, createTabState, getControlButtons, getFirstVisibleTab, getLastVisibleTab, getOffscreenGraphics, getTabsAreaWidth, installControlButtons, makeTabVisible, modelChanged, processMouseWheelEvent, scroll, uninstall |
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI |
cancelRequestAttention, createImageOfTab, createModelListener, createMouseListener, createPropertyChangeListener, createSelectionListener, dropIndexOfPoint, getExactTabIndication, getInsertTabIndication, getLastKnownMouseLocation, getTabCellRenderer, getTabRect, getTabRectForRepaint, getTabsVisibleArea, isAntialiased, paint, paintBackground, requestAttention, tabForCoordinate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalEditorTabDisplayerUI
public MetalEditorTabDisplayerUI(TabDisplayer displayer)
- Creates a new instance of MetalEditorTabDisplayerUI
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
createUI
public static ComponentUI createUI(JComponent c)
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
getMinimumSize
in class BasicScrollingTabDisplayerUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSize
in class ComponentUI
createRepaintPolicy
protected int createRepaintPolicy()
- Description copied from class:
BasicTabDisplayerUI
- Create the policy that will determine what types of events trigger a repaint of one or more tabs.
This is a bitmask composed of constants defined in TabState. The default value is
TabState.REPAINT_SELECTION_ON_ACTIVATION_CHANGE
| TabState.REPAINT_ON_SELECTION_CHANGE
| TabState.REPAINT_ON_MOUSE_ENTER_TAB
| TabState.REPAINT_ON_MOUSE_ENTER_CLOSE_BUTTON
| TabState.REPAINT_ON_MOUSE_PRESSED;
- Overrides:
createRepaintPolicy
in class BasicTabDisplayerUI
- Returns:
- The repaint policy that should be used in conjunction with mouse events to determine when a
repaint is needed.
getTabAreaInsets
public Insets getTabAreaInsets()
- Description copied from class:
BasicTabDisplayerUI
- Return a set of insets defining the margins into which tabs should not be
painted. Subclasses that want to paint some controls to the right of the
tabs should include space for those controls in these insets. If a
bottom margin under the tabs is to be painted, include that as well.
- Overrides:
getTabAreaInsets
in class BasicScrollingTabDisplayerUI
install
public void install()
- Description copied from class:
BasicTabDisplayerUI
- Overridden to initialize the
tabState
and defaultRenderer
.
- Overrides:
install
in class BasicScrollingTabDisplayerUI
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
getButtonIcon
public Icon getButtonIcon(int buttonId,
int buttonState)
- Specified by:
getButtonIcon
in class TabDisplayerUI
getControlButtonsRectangle
protected Rectangle getControlButtonsRectangle(Container parent)
- Overrides:
getControlButtonsRectangle
in class BasicScrollingTabDisplayerUI
- Returns:
- Bounds for the control buttons in the tab displayer container.