org.netbeans.swing.tabcontrol 1.36

org.netbeans.swing.tabcontrol.plaf
Class AquaEditorTabDisplayerUI

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.AquaEditorTabDisplayerUI

public class AquaEditorTabDisplayerUI
extends BasicScrollingTabDisplayerUI

A provisional look and feel for OS-X, round 2, using Java2d to emulate the aqua look.


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
AquaEditorTabDisplayerUI(TabDisplayer displayer)
           
 
Method Summary
protected  TabCellRenderer createDefaultRenderer()
          Create the default cell renderer for this control.
protected  Font createFont()
           
protected  int createRepaintPolicy()
          Create the policy that will determine what types of events trigger a repaint of one or more tabs.
static ComponentUI createUI(JComponent c)
           
 Icon getButtonIcon(int buttonId, int buttonState)
           
 Dimension getPreferredSize(JComponent c)
           
protected  Font getTxtFont()
           
protected  boolean isAntialiased()
           
protected  void paintAfterTabs(Graphics g)
          Override this method to provide painting of areas outside the tabs rectangle, such as margins and controls
protected  void paintBackground(Graphics g)
          Fill in the background of the component prior to painting the tabs.
 
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, createSelectionListener, dropIndexOfPoint, getExactTabIndication, getInsertTabIndication, getLastKnownMouseLocation, getTabCellRenderer, getTabRect, getTabRectForRepaint, getTabsVisibleArea, paint, requestAttention, tabForCoordinate
 
Methods inherited from class org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI
createSelectionModel, installListeners, installUI, registerShortcuts, toDropPoint, uninstallListeners, uninstallUI, unregisterShortcuts
 
Methods inherited from class org.netbeans.swing.tabcontrol.TabDisplayerUI
isTabBusy, 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
 

Constructor Detail

AquaEditorTabDisplayerUI

public AquaEditorTabDisplayerUI(TabDisplayer displayer)
Method Detail

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)

isAntialiased

protected boolean isAntialiased()
Overrides:
isAntialiased in class BasicTabDisplayerUI

createFont

protected Font createFont()
Overrides:
createFont in class AbstractTabDisplayerUI

getTxtFont

protected Font getTxtFont()
Overrides:
getTxtFont in class TabDisplayerUI

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.

getPreferredSize

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

paintBackground

protected 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

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.