PropertyChangeListener
, EventListener
, SynthConstants
, SynthUI
, SwingConstants
public class SynthTabbedPaneUI extends BasicTabbedPaneUI implements PropertyChangeListener, SynthUI
JTabbedPane
. Looks up the selectedTabPadInsets
property from the Style, which represents additional insets for the selected tab.
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler
calcRect, contentBorderInsets, darkShadow, downKey, focus, focusListener, highlight, leftKey, lightHighlight, maxTabHeight, maxTabWidth, mouseListener, propertyChangeListener, rects, rightKey, runCount, selectedRun, selectedTabPadInsets, shadow, tabAreaInsets, tabChangeListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap, upKey
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
Constructor | Description |
---|---|
SynthTabbedPaneUI() |
Constructs a SynthTabbedPaneUI . |
Modifier and Type | Method | Description |
---|---|---|
protected LayoutManager |
createLayoutManager() |
Invoked by installUI to create a layout manager object to manage the JTabbedPane . |
protected MouseListener |
createMouseListener() |
Creates a mouse listener. |
static ComponentUI |
createUI |
Creates a new UI object for the given component. |
SynthContext |
getContext |
Returns the Context for the specified component. |
void |
paint |
Paints the specified component according to the Look and Feel. |
protected void |
paint |
Paints the specified component. |
void |
paintBorder |
Paints the border. |
void |
propertyChange |
This method gets called when a bound property is changed. |
void |
update |
Notifies this UI delegate to repaint the specified component. |
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabArea, paintTabBackground, paintTabBorder, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, uninstallUI
public SynthTabbedPaneUI()
SynthTabbedPaneUI
.public static ComponentUI createUI(JComponent c)
c
- component to create UI object forpublic SynthContext getContext(JComponent c)
getContext
in interface SynthUI
c
- Component requesting SynthContext.public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- A PropertyChangeEvent object describing the event source and the property that has changed.protected MouseListener createMouseListener()
createMouseListener
in class BasicTabbedPaneUI
public void update(Graphics g, JComponent c)
paint(SynthContext,Graphics)
method. In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint
method.
update
in class ComponentUI
g
- the Graphics
object used for paintingc
- the component being paintedpublic void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder
in interface SynthUI
context
- a component contextg
- Graphics
to paint onx
- the X coordinatey
- the Y coordinatew
- width of the borderh
- height of the borderpublic void paint(Graphics g, JComponent c)
This method is not used by Synth Look and Feel. Painting is handled by the paint(SynthContext,Graphics)
method.
paint
in class ComponentUI
g
- the Graphics
object used for paintingc
- the component being paintedprotected void paint(SynthContext context, Graphics g)
context
- context for the component being paintedg
- the Graphics
object used for paintingprotected LayoutManager createLayoutManager()
installUI
to create a layout manager object to manage the JTabbedPane
. Overridden to create a TabbedPaneLayout subclass which takes into account tabOverlap.createLayoutManager
in class BasicTabbedPaneUI
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/synth/SynthTabbedPaneUI.html