public class MetalToolBarUI extends javax.swing.plaf.basic.BasicToolBarUI
JToolBar component.| Modifier and Type | Class and Description |
|---|---|
protected class |
MetalToolBarUI.MetalContainerListener
A listener (no longer used) that responds when components are added to or
removed from the
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
JToolBar component. |
javax.swing.plaf.basic.BasicToolBarUI.DockingListener, javax.swing.plaf.basic.BasicToolBarUI.DragWindow, javax.swing.plaf.basic.BasicToolBarUI.FrameListener, javax.swing.plaf.basic.BasicToolBarUI.PropertyListener, javax.swing.plaf.basic.BasicToolBarUI.ToolBarContListener, javax.swing.plaf.basic.BasicToolBarUI.ToolBarFocusListener| Modifier and Type | Field and Description |
|---|---|
protected java.awt.event.ContainerListener |
contListener
The container listener (an implementation specific field, according to the
spec, and not used in GNU Classpath).
|
protected java.beans.PropertyChangeListener |
rolloverListener
The rollover listener (an implementation specific field, according to the
spec, and not used in GNU Classpath).
|
constraintBeforeFloating, dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKey| Constructor and Description |
|---|
MetalToolBarUI()
Creates a new instance of this UI delegate.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.event.ContainerListener |
createContainerListener()
Returns
null as permitted by recent versions of the API
specification. |
protected javax.swing.event.MouseInputListener |
createDockingListener()
Creates and returns an instance of MetalDockingListener.
|
protected javax.swing.border.Border |
createNonRolloverBorder()
Returns a border with no rollover effect for buttons in the tool bar.
|
protected java.beans.PropertyChangeListener |
createRolloverListener()
Returns
null as permitted by recent versions of the API
specification. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent component)
Returns a new instance of
MetalToolBarUI. |
void |
installUI(javax.swing.JComponent c)
Installs the UI on the toolbar.
|
protected void |
setDragOffset(java.awt.Point p)
Sets the offset for the window used for dragging the toolbar.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls the UI from the toolbar.
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c)
Paints the background of the component if necessary and then calls
paint(g, c). |
canDock, createDragWindow, createFloatingFrame, createFloatingWindow, createFrameListener, createPropertyListener, createRolloverBorder, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, installNonRolloverBorders, installNormalBorders, installRolloverBorders, isFloating, isRolloverBorders, navigateFocusedComp, setBorderToNonRollover, setBorderToNormal, setBorderToRollover, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenersprotected java.awt.event.ContainerListener contListener
protected java.beans.PropertyChangeListener rolloverListener
public MetalToolBarUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
MetalToolBarUI.component - the component for which we return an UI instanceMetalToolBarUI.protected java.beans.PropertyChangeListener createRolloverListener()
null as permitted by recent versions of the API
specification. Originally it seems this method returned a new instance of
MetalToolBarUI.MetalRolloverListener, but this is now redundant.null.protected java.awt.event.ContainerListener createContainerListener()
null as permitted by recent versions of the API
specification. Originally it seems this method returned a new instance of
MetalToolBarUI.MetalContainerListener, but this is now redundant.null.protected javax.swing.border.Border createNonRolloverBorder()
createNonRolloverBorder in class javax.swing.plaf.basic.BasicToolBarUIMetalBorders.getToolbarButtonBorder()protected void setDragOffset(java.awt.Point p)
protected javax.swing.event.MouseInputListener createDockingListener()
createDockingListener in class javax.swing.plaf.basic.BasicToolBarUIpublic void installUI(javax.swing.JComponent c)
UIManager property
"ToolBar.isRollover".installUI in class javax.swing.plaf.basic.BasicToolBarUIc - the component to install the UI onComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicToolBarUIc - the component to uninstall the UI fromComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void update(java.awt.Graphics g, javax.swing.JComponent c)
paint(g, c).
This is overridden to implement the OceanTheme gradient when an OceanTheme
is installed.update in class javax.swing.plaf.ComponentUIg - the graphics to usec - the component to paint.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)