java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ToolBarUI javax.swing.plaf.basic.BasicToolBarUI javax.swing.plaf.metal.MetalToolBarUI
A Metal Look and Feel implementation of ToolBarUI. This implementation is a "combined" view/controller.
Nested Class Summary | |
---|---|
protected class |
MetalToolBarUI.MetalContainerListener
|
protected class |
MetalToolBarUI.MetalDockingListener
|
protected class |
MetalToolBarUI.MetalRolloverListener
|
Nested classes inherited from class javax.swing.plaf.basic. BasicToolBarUI |
---|
BasicToolBarUI.DockingListener , BasicToolBarUI.DragWindow , BasicToolBarUI.FrameListener , BasicToolBarUI.PropertyListener , BasicToolBarUI.ToolBarContListener , BasicToolBarUI.ToolBarFocusListener |
Field Summary | |
---|---|
protected ContainerListener |
contListener
This protected field is implemenation specific. |
protected PropertyChangeListener |
rolloverListener
This protected field is implemenation specific. |
Fields inherited from class javax.swing.plaf.basic. BasicToolBarUI |
---|
constraintBeforeFloating , dockingBorderColor , dockingColor , dockingListener , downKey , dragWindow , floatingBorderColor , floatingColor , focusedCompIndex , leftKey , propertyListener , rightKey , toolBar , toolBarContListener , toolBarFocusListener , upKey |
Fields inherited from interface javax.swing. SwingConstants |
---|
BOTTOM , CENTER , EAST , HORIZONTAL , LEADING , LEFT , NEXT , NORTH , NORTH_EAST , NORTH_WEST , PREVIOUS , RIGHT , SOUTH , SOUTH_EAST , SOUTH_WEST , TOP , TRAILING , VERTICAL , WEST |
Constructor Summary | |
---|---|
MetalToolBarUI
() |
Method Summary | |
---|---|
protected ContainerListener |
createContainerListener
() Creates a container listener that will be added to the JToolBar. |
protected MouseInputListener |
createDockingListener
() |
protected Border |
createNonRolloverBorder
() Creates the non rollover border for toolbar components. |
protected Border |
createRolloverBorder
() Creates a rollover border for toolbar components. |
protected PropertyChangeListener |
createRolloverListener
() Creates a property change listener that will be added to the JToolBar. |
static ComponentUI |
createUI
(
JComponent
c) |
protected void |
installListeners
() |
void |
installUI
(
JComponent
c) Configures the specified component appropriate for the look and feel. |
protected void |
setBorderToNonRollover
(
Component
c) Sets the border of the component to have a non-rollover border which was created by createNonRolloverBorder. |
protected void |
setDragOffset
(
Point
p) |
protected void |
uninstallListeners
() |
void |
uninstallUI
(
JComponent
c) Reverses configuration which was done on the specified component during installUI. |
void |
update
(
Graphics
g,
JComponent
If necessary paints the background of the component, then invokes paint. |
Methods inherited from class javax.swing.plaf.basic. BasicToolBarUI |
---|
canDock
,
createDragWindow
,
createFloatingFrame
,
createFloatingWindow
,
createFrameListener
,
createPropertyListener
,
createToolBarContListener
,
createToolBarFocusListener
,
dragTo
,
floatAt
,
getDockingColor
,
getFloatingColor
,
|
Methods inherited from class javax.swing.plaf. ComponentUI |
---|
contains
,
getAccessibleChild
,
getAccessibleChildrenCount
,
getMaximumSize
|
Methods inherited from class java.lang. Object |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
Field Detail |
---|
protected ContainerListener contListener
protected PropertyChangeListener rolloverListener
Constructor Detail |
---|
public MetalToolBarUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
public void uninstallUI(JComponent c)
protected void installListeners()
protected void uninstallListeners()
protected Border createRolloverBorder()
Override this method to provide an alternate rollover border.
protected Border createNonRolloverBorder()
Override this method to provide an alternate rollover border.
protected void setBorderToNonRollover(Component c)
protected ContainerListener createContainerListener()
protected PropertyChangeListener createRolloverListener()
protected MouseInputListener createDockingListener()
protected void setDragOffset(Point p)
public void update ( Graphics g, JComponent c)