PropertyChangeListener, EventListener, SynthConstants, SynthUI, SwingConstants
public class SynthToolBarUI extends BasicToolBarUI implements PropertyChangeListener, SynthUI
JToolBar.BasicToolBarUI.DockingListener, BasicToolBarUI.DragWindow, BasicToolBarUI.FrameListener, BasicToolBarUI.PropertyListener, BasicToolBarUI.ToolBarContListener, BasicToolBarUI.ToolBarFocusListener
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
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
| Constructor | Description | 
|---|---|
| SynthToolBarUI() | Constructs a  SynthToolBarUI. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected LayoutManager | createLayout() | Creates a  LayoutManagerto use with the toolbar. | 
| 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 toolbar. | 
| void | paintBorder | Paints the border. | 
| protected void | paintContent | Paints the toolbar content. | 
| void | propertyChange | This method gets called when a bound property is changed. | 
| protected void | setBorderToNonRollover | This implementation does nothing, because the  rolloverproperty of theJToolBarclass is not used in the Synth Look and Feel. | 
| protected void | setBorderToNormal | This implementation does nothing, because the  rolloverproperty of theJToolBarclass is not used in the Synth Look and Feel. | 
| protected void | setBorderToRollover | This implementation does nothing, because the  rolloverproperty of theJToolBarclass is not used in the Synth Look and Feel. | 
| void | update | Notifies this UI delegate to repaint the specified component. | 
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, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, uninstallUI
public SynthToolBarUI()
SynthToolBarUI.public static ComponentUI createUI(JComponent c)
c - component to create UI object forprotected LayoutManager createLayout()
LayoutManager to use with the toolbar.LayoutManager instancepublic SynthContext getContext(JComponent c)
getContext in interface SynthUI
c - Component requesting SynthContext.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 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 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 borderprotected void setBorderToNonRollover(Component c)
rollover property of the JToolBar class is not used in the Synth Look and Feel.setBorderToNonRollover in class BasicToolBarUI
c - component which will have a non-rollover border installedprotected void setBorderToRollover(Component c)
rollover property of the JToolBar class is not used in the Synth Look and Feel.setBorderToRollover in class BasicToolBarUI
c - component which will have a rollover border installedprotected void setBorderToNormal(Component c)
rollover property of the JToolBar class is not used in the Synth Look and Feel.setBorderToNormal in class BasicToolBarUI
c - component which will have a normal border re-installedprotected void paint(SynthContext context, Graphics g)
context - context for the component being paintedg - the Graphics object used for paintingprotected void paintContent(SynthContext context, Graphics g, Rectangle bounds)
context - context for the component being paintedg - Graphics object used for paintingbounds - bounding box for the toolbarpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListener
e - A PropertyChangeEvent object describing the event source and the property that has changed.
    © 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/SynthToolBarUI.html