public class

WindowsToolBarUI

extends BasicToolBarUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.ToolBarUI
       ↳ javax.swing.plaf.basic.BasicToolBarUI
         ↳ com.sun.java.swing.plaf.windows.WindowsToolBarUI

Summary

[Expand]
Inherited Constants
From interface javax.swing.SwingConstants
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicToolBarUI
Public Constructors
WindowsToolBarUI()
Public Methods
static ComponentUI createUI(JComponent c)
void paint(Graphics g, JComponent c)
Paints the specified component appropriate for the look and feel.
Protected Methods
Border createNonRolloverBorder()
Creates the non rollover border for toolbar components.
Border createRolloverBorder()
Creates a rollover border for toolbar components.
Border getRolloverBorder(AbstractButton b)
Returns a rollover border for the button.
void installDefaults()
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicToolBarUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Public Constructors

public WindowsToolBarUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

public void paint (Graphics g, JComponent c)

Paints the specified component appropriate for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Parameters
g the Graphics context in which to paint
c the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

Protected Methods

protected Border createNonRolloverBorder ()

Creates the non rollover border for toolbar components. This border will be installed as the border for components added to the toolbar if rollover borders are not enabled.

Override this method to provide an alternate rollover border.

protected Border createRolloverBorder ()

Creates a rollover border for toolbar components. The rollover border will be installed if rollover borders are enabled.

Override this method to provide an alternate rollover border.

protected Border getRolloverBorder (AbstractButton b)

Returns a rollover border for the button.

Parameters
b the button to calculate the rollover border for
Returns
  • the rollover border

protected void installDefaults ()