org.netbeans.swing.tabcontrol 1.36

org.netbeans.swing.tabcontrol.plaf
Class AquaViewTabDisplayerUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.netbeans.swing.tabcontrol.TabDisplayerUI
          extended by org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI
              extended by org.netbeans.swing.tabcontrol.plaf.AquaViewTabDisplayerUI

public final class AquaViewTabDisplayerUI
extends AbstractViewTabDisplayerUI

A view tabs ui for OS-X adapted from the view tabs UI for Metal.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI
AbstractViewTabDisplayerUI.Controller
 
Field Summary
 
Fields inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI
controller, tabState
 
Fields inherited from class org.netbeans.swing.tabcontrol.TabDisplayerUI
displayer, selectionModel
 
Method Summary
protected  AbstractViewTabDisplayerUI.Controller createController()
           
static ComponentUI createUI(JComponent c)
           
 Icon getButtonIcon(int buttonId, int buttonState)
           
 Dimension getPreferredSize(JComponent c)
           
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, createImageOfTab, createLayoutModel, createRepaintPolicy, createSelectionModel, dropIndexOfPoint, getControlButtons, getController, getDataModel, getDisplayer, getExactTabIndication, getInsertTabIndication, getLayoutModel, getMinimumSize, getSelectionModel, getTabRect, getTxtFont, getTxtFontMetrics, installControlButtons, installUI, isActive, isAttention, isFocused, isSelected, paint, paintDisplayerBackground, registerShortcuts, requestAttention, tabForCoordinate, uninstallUI, unregisterShortcuts
 
Methods inherited from class org.netbeans.swing.tabcontrol.TabDisplayerUI
isTabBusy, makeTabVisible, postTabAction, shouldPerformAction, shouldPerformAction
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUI

public static ComponentUI createUI(JComponent c)

createController

protected AbstractViewTabDisplayerUI.Controller createController()
Overrides:
createController in class AbstractViewTabDisplayerUI

getPreferredSize

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

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)
Overrides:
getButtonIcon in class TabDisplayerUI
Returns:
An icon for various buttons displayed in tab control (close/pin/scroll left/right etc), see TabControlButton class.

org.netbeans.swing.tabcontrol 1.36

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.