public final class MetalEditorTabDisplayerUI extends BasicScrollingTabDisplayerUI
BasicScrollingTabDisplayerUI.ScrollingDisplayerComponentListener, BasicScrollingTabDisplayerUI.ScrollingHierarchyListener, BasicScrollingTabDisplayerUI.ScrollingTabState
BasicTabDisplayerUI.BasicDisplayerMouseListener, BasicTabDisplayerUI.BasicModelListener, BasicTabDisplayerUI.BasicSelectionListener, BasicTabDisplayerUI.BasicTabState
AbstractTabDisplayerUI.DisplayerHierarchyListener, AbstractTabDisplayerUI.DisplayerPropertyChangeListener, AbstractTabDisplayerUI.ModelListener
defaultRenderer, repaintPolicy, tabState
componentListener, hierarchyListener, layoutModel, modelListener, mouseListener, propertyChangeListener, selectionListener
displayer, selectionModel
Constructor and Description |
---|
MetalEditorTabDisplayerUI(TabDisplayer displayer)
Creates a new instance of MetalEditorTabDisplayerUI
|
Modifier and Type | Method and Description |
---|---|
protected TabCellRenderer |
createDefaultRenderer()
Create the default cell renderer for this control.
|
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) |
protected Rectangle |
getControlButtonsRectangle(Container parent) |
Dimension |
getMinimumSize(JComponent c) |
Dimension |
getPreferredSize(JComponent c) |
Insets |
getTabAreaInsets()
Return a set of insets defining the margins into which tabs should not be
painted.
|
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
|
autoscroll, createComponentListener, createHierarchyListener, createLayout, createLayoutModel, createTabState, getAutoscrollInsets, getControlButtons, getFirstVisibleTab, getLastVisibleTab, getOffscreenGraphics, getOffscreenGraphics, getTabsAreaWidth, installControlButtons, makeTabVisible, modelChanged, processMouseWheelEvent, scroll, uninstall
cancelRequestAttention, createImageOfTab, createModelListener, createMouseListener, createPropertyChangeListener, createSelectionListener, dropIndexOfPoint, getExactTabIndication, getInsertTabIndication, getLastKnownMouseLocation, getTabCellRenderer, getTabRect, getTabRectForRepaint, getTabsVisibleArea, isAntialiased, paint, paintBackground, requestAttention, setAttentionHighlight, tabForCoordinate
createFont, createSelectionModel, installListeners, installUI, registerShortcuts, toDropPoint, uninstallListeners, uninstallUI, unregisterShortcuts
getTxtFont, isTabBusy, postTabAction, shouldPerformAction, shouldPerformAction
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, update
public MetalEditorTabDisplayerUI(TabDisplayer displayer)
protected TabCellRenderer createDefaultRenderer()
BasicTabDisplayerUI
createDefaultRenderer
in class BasicTabDisplayerUI
public static ComponentUI createUI(JComponent c)
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class BasicScrollingTabDisplayerUI
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
protected int createRepaintPolicy()
BasicTabDisplayerUI
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;
createRepaintPolicy
in class BasicTabDisplayerUI
public Insets getTabAreaInsets()
BasicTabDisplayerUI
getTabAreaInsets
in class BasicScrollingTabDisplayerUI
public void install()
BasicTabDisplayerUI
tabState
and defaultRenderer
.install
in class BasicScrollingTabDisplayerUI
protected void paintAfterTabs(Graphics g)
BasicTabDisplayerUI
paintAfterTabs
in class BasicTabDisplayerUI
public Icon getButtonIcon(int buttonId, int buttonState)
getButtonIcon
in class TabDisplayerUI
protected Rectangle getControlButtonsRectangle(Container parent)
getControlButtonsRectangle
in class BasicScrollingTabDisplayerUI