org.netbeans.swing.tabcontrol.plaf
Class NimbusEditorTabDisplayerUI
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.NimbusEditorTabDisplayerUI
public final class NimbusEditorTabDisplayerUI
- extends BasicScrollingTabDisplayerUI
Nimbus impl of tabs ui
| 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, requestAttention, tabForCoordinate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NimbusEditorTabDisplayerUI
public NimbusEditorTabDisplayerUI(TabDisplayer displayer)
- Creates a new instance of GtkEditorTabDisplayerUI
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
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
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)
- Overrides:
getButtonIcon in class TabDisplayerUI
- Returns:
- An icon for various buttons displayed in tab control (close/pin/scroll left/right etc), see TabControlButton class.
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