站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WinClassicEditorTabDisplayerUI (Tab Control) - NetBeans API Javadoc (Current Development Version)

org.netbeans.swing.tabcontrol 1.8

org.netbeans.swing.tabcontrol.plaf
Class WinClassicEditorTabDisplayerUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.netbeans.swing.tabcontrol.TabDisplayerUI
          extended by org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI
              extended by org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI
                  extended by org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI
                      extended by org.netbeans.swing.tabcontrol.plaf.WinClassicEditorTabDisplayerUI

public final class WinClassicEditorTabDisplayerUI
extends BasicScrollingTabDisplayerUI

Windows classic impl of tabs ui


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI
BasicScrollingTabDisplayerUI.ScrollingDisplayerComponentListener, BasicScrollingTabDisplayerUI.ScrollingHierarchyListener, BasicScrollingTabDisplayerUI.ScrollingTabState
 
Nested classes/interfaces inherited from class org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI
BasicTabDisplayerUI.BasicDisplayerMouseListener, BasicTabDisplayerUI.BasicModelListener, BasicTabDisplayerUI.BasicSelectionListener, BasicTabDisplayerUI.BasicTabState
 
Nested classes/interfaces inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI
AbstractTabDisplayerUI.DisplayerHierarchyListener, AbstractTabDisplayerUI.DisplayerPropertyChangeListener, AbstractTabDisplayerUI.ModelListener
 
Field Summary
 
Fields inherited from class org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI
defaultRenderer, repaintPolicy, tabState
 
Fields inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI
componentListener, hierarchyListener, layoutModel, modelListener, mouseListener, propertyChangeListener, selectionListener
 
Fields inherited from class org.netbeans.swing.tabcontrol.TabDisplayerUI
displayer, selectionModel
 
Constructor Summary
WinClassicEditorTabDisplayerUI(TabDisplayer displayer)
          Creates a new instance of WinClassicEditorTabDisplayerUI
 
Method Summary
protected  TabCellRenderer createDefaultRenderer()
          Create the default cell renderer for this control.
static ComponentUI createUI(JComponent c)
           
 Icon getButtonIcon(int buttonId, int buttonState)
           
protected  Rectangle getControlButtonsRectangle(Container parent)
           
 Dimension getPreferredSize(JComponent c)
           
 Insets getTabAreaInsets()
          Return a set of insets defining the margins into which tabs should not be painted.
 Rectangle getTabRect(int idx, Rectangle rect)
          Configure the passed rectangle with the shape of the tab at the given index.
 void install()
          Overridden to initialize the tabState and defaultRenderer.
protected  void paintAfterTabs(Graphics g)
          Override this method to provide painting of areas outside the tabs rectangle, such as margins and controls
 
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.BasicScrollingTabDisplayerUI
createComponentListener, createHierarchyListener, createLayout, createLayoutModel, createTabState, getControlButtons, getFirstVisibleTab, getLastVisibleTab, getMinimumSize, getOffscreenGraphics, getTabsAreaWidth, 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, getTabRectForRepaint, getTabsVisibleArea, isAntialiased, paint, paintBackground, requestAttention, tabForCoordinate
 
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI
createFont, createSelectionModel, installListeners, installUI, registerShortcuts, toDropPoint, uninstallListeners, uninstallUI, unregisterShortcuts
 
Methods inherited from class org.netbeans.swing.tabcontrol.TabDisplayerUI
postTabAction, shouldPerformAction
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WinClassicEditorTabDisplayerUI

public WinClassicEditorTabDisplayerUI(TabDisplayer displayer)
Creates a new instance of WinClassicEditorTabDisplayerUI

Method Detail

createUI

public static ComponentUI createUI(JComponent c)

getTabRect

public Rectangle getTabRect(int idx,
                            Rectangle rect)
Description copied from class: TabDisplayerUI
Configure the passed rectangle with the shape of the tab at the given index.

Overrides:
getTabRect in class BasicTabDisplayerUI

install

public void install()
Description copied from class: BasicTabDisplayerUI
Overridden to initialize the tabState and defaultRenderer.

Overrides:
install in class BasicScrollingTabDisplayerUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI

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

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.

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

org.netbeans.swing.tabcontrol 1.8

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.