SwingConstants
public class MetalToolBarUI extends BasicToolBarUI
Modifier and Type | Class | Description |
---|---|---|
protected class |
MetalToolBarUI.MetalContainerListener |
No longer used. |
protected class |
MetalToolBarUI.MetalDockingListener |
DockingListener for MetalToolBarUI . |
protected class |
MetalToolBarUI.MetalRolloverListener |
No longer used. |
BasicToolBarUI.DockingListener, BasicToolBarUI.DragWindow, BasicToolBarUI.FrameListener, BasicToolBarUI.PropertyListener, BasicToolBarUI.ToolBarContListener, BasicToolBarUI.ToolBarFocusListener
Modifier and Type | Field | Description |
---|---|---|
protected ContainerListener |
contListener |
This protected field is implementation specific. |
protected PropertyChangeListener |
rolloverListener |
This protected field is implementation specific. |
constraintBeforeFloating, dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKey
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor | Description |
---|---|
MetalToolBarUI() |
Constructs a MetalToolBarUI . |
Modifier and Type | Method | Description |
---|---|---|
protected ContainerListener |
createContainerListener() |
Creates a container listener that will be added to the JToolBar. |
protected PropertyChangeListener |
createRolloverListener() |
Creates a property change listener that will be added to the JToolBar. |
static ComponentUI |
createUI |
Constructs an instance of MetalToolBarUI . |
protected void |
setDragOffset |
Sets the offset of the mouse cursor inside the DragWindow. |
void |
update |
If necessary paints the background of the component, then invokes paint . |
canDock, createDockingListener, createDragWindow, createFloatingFrame, createFloatingWindow, createFrameListener, createNonRolloverBorder, createPropertyListener, createRolloverBorder, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getNonRolloverBorder, getRolloverBorder, installComponents, installDefaults, installKeyboardActions, installListeners, installNonRolloverBorders, installNormalBorders, installRolloverBorders, isFloating, isRolloverBorders, navigateFocusedComp, paintDragWindow, setBorderToNonRollover, setBorderToNormal, setBorderToRollover, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI
protected ContainerListener contListener
protected PropertyChangeListener rolloverListener
public MetalToolBarUI()
MetalToolBarUI
.public static ComponentUI createUI(JComponent c)
MetalToolBarUI
.c
- a componentMetalToolBarUI
protected ContainerListener createContainerListener()
ContainerListener
or nullprotected PropertyChangeListener createRolloverListener()
PropertyChangeListener
or nullprotected void setDragOffset(Point p)
p
- the offsetpublic void update(Graphics g, JComponent c)
paint
.update
in class ComponentUI
g
- Graphics to paint toc
- JComponent painting onNullPointerException
- if g
or c
is null
© 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/metal/MetalToolBarUI.html