Class MetalToolBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ToolBarUI
javax.swing.plaf.basic.BasicToolBarUI
javax.swing.plaf.metal.MetalToolBarUI
- All Implemented Interfaces:
- SwingConstants
A Metal Look and Feel implementation of ToolBarUI.  This implementation
 is a "combined" view/controller.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classNo longer used.protected classDockingListenerforMetalToolBarUI.protected classNo longer used.Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicToolBarUIBasicToolBarUI.DockingListener, BasicToolBarUI.DragWindow, BasicToolBarUI.FrameListener, BasicToolBarUI.PropertyListener, BasicToolBarUI.ToolBarContListener, BasicToolBarUI.ToolBarFocusListener
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ContainerListenerThis protected field is implementation specific.protected PropertyChangeListenerThis protected field is implementation specific.Fields declared in class javax.swing.plaf.basic.BasicToolBarUIconstraintBeforeFloating, dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKeyFields declared in interface javax.swing.SwingConstantsBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ContainerListenerCreates a container listener that will be added to the JToolBar.protected PropertyChangeListenerCreates a property change listener that will be added to the JToolBar.static ComponentUIConstructs an instance ofMetalToolBarUI.protected voidSets the offset of the mouse cursor inside the DragWindow.voidupdate(Graphics g, JComponent c) If necessary paints the background of the component, then invokespaint.Methods declared in class javax.swing.plaf.basic.BasicToolBarUIcanDock, 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, uninstallListenersMethods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI
- 
Field Details- 
contListenerThis protected field is implementation specific. Do not access directly or override. Use the create method instead.- See Also:
 
- 
rolloverListenerThis protected field is implementation specific. Do not access directly or override. Use the create method instead.- See Also:
 
 
- 
- 
Constructor Details- 
MetalToolBarUIpublic MetalToolBarUI()Constructs aMetalToolBarUI.
 
- 
- 
Method Details- 
createUIConstructs an instance ofMetalToolBarUI.- Parameters:
- c- a component
- Returns:
- an instance of MetalToolBarUI
 
- 
createContainerListenerCreates a container listener that will be added to the JToolBar. If this method returns null then it will not be added to the toolbar.- Returns:
- an instance of a ContainerListeneror null
 
- 
createRolloverListenerCreates a property change listener that will be added to the JToolBar. If this method returns null then it will not be added to the toolbar.- Returns:
- an instance of a PropertyChangeListeneror null
 
- 
setDragOffsetSets the offset of the mouse cursor inside the DragWindow.- Parameters:
- p- the offset
 
- 
updateIf necessary paints the background of the component, then invokespaint.- Overrides:
- updatein class- ComponentUI
- Parameters:
- g- Graphics to paint to
- c- JComponent painting on
- Throws:
- NullPointerException- if- gor- cis null
- Since:
- 1.5
- See Also:
 
 
-