javax.swing.plaf.metal
public class MetalToolBarUI extends BasicToolBarUI
| Nested Class Summary | |
|---|---|
| protected class | MetalToolBarUI.MetalContainerListener
A listener (no longer used) that responds when components are added to or
removed from the {@link JToolBar}. |
| protected class | MetalToolBarUI.MetalDockingListener
This is the MouseHandler class that allows the user to drag the JToolBar
in and out of the parent and dock it if it can. |
| protected class | MetalToolBarUI.MetalRolloverListener
A listener (no longer used) that responds to property change events in a
{@link JToolBar} component. |
| Field Summary | |
|---|---|
| protected ContainerListener | contListener
The container listener (an implementation specific field, according to the
spec, and not used in GNU Classpath). |
| protected PropertyChangeListener | rolloverListener
The rollover listener (an implementation specific field, according to the
spec, and not used in GNU Classpath). |
| Constructor Summary | |
|---|---|
| MetalToolBarUI()
Creates a new instance of this UI delegate. | |
| Method Summary | |
|---|---|
| protected ContainerListener | createContainerListener()
Returns null as permitted by recent versions of the API
specification. |
| protected MouseInputListener | createDockingListener()
Creates and returns an instance of MetalDockingListener.
|
| protected Border | createNonRolloverBorder()
Returns a border with no rollover effect for buttons in the tool bar.
|
| protected PropertyChangeListener | createRolloverListener()
Returns null as permitted by recent versions of the API
specification. |
| static ComponentUI | createUI(JComponent component)
Returns a new instance of MetalToolBarUI.
|
| void | installUI(JComponent c)
Installs the UI on the toolbar. |
| protected void | setDragOffset(Point p)
Sets the offset for the window used for dragging the toolbar.
|
| void | uninstallUI(JComponent c)
Uninstalls the UI from the toolbar. |
| void | update(Graphics g, JComponent c)
Paints the background of the component if necessary and then calls
paint(g, c).
|
null as permitted by recent versions of the API
specification. Originally it seems this method returned a new instance of
{@link MetalContainerListener}, but this is now redundant.
Returns: null.
Returns: an instance of MetalDockingListener.
Returns: A border.
See Also: getToolbarButtonBorder
null as permitted by recent versions of the API
specification. Originally it seems this method returned a new instance of
{@link MetalRolloverListener}, but this is now redundant.
Returns: null.
MetalToolBarUI.
Parameters: component the component for which we return an UI instance
Returns: A new instance of MetalToolBarUI.
UIManager property
"ToolBar.isRollover".
Parameters: c the component to install the UI on
Parameters: c the component to uninstall the UI from
paint(g, c).
This is overridden to implement the OceanTheme gradient when an OceanTheme
is installed.
Parameters: g the graphics to use c the component to paint.
Since: 1.5