APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.basic

public Class BasicToolBarSeparatorUI

extends BasicSeparatorUI
Class Inheritance
Imports
javax.swing.*, .JToolBar, java.awt.Color, .Dimension, .Graphics, .Insets, .Rectangle, javax.swing.plaf.*, javax.swing.plaf.basic.BasicSeparatorUI

A Basic L&F implementation of ToolBarSeparatorUI. This implementation is a "combined" view/controller.
Author
Jeff Shapiro

Field Summary

Inherited from javax.swing.plaf.basic.BasicSeparatorUI:
highlightshadow

Constructor Summary

AccessConstructor and Description
public
BasicToolBarSeparatorUI()

Constructs a BasicToolBarSeparatorUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

a new instance of BasicToolBarSeparatorUI
createUI
(JComponent
a component
c
)

Hides javax.swing.plaf.basic.BasicSeparatorUI.createUI.

Returns a new instance of BasicToolBarSeparatorUI.

public Dimension
getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicSeparatorUI.getPreferredSize.

Returns the specified component's preferred size appropriate for the look and feel.

protected void
public void
paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicSeparatorUI.paint.

Paints the specified component appropriately for the look and feel.

Inherited from javax.swing.plaf.basic.BasicSeparatorUI:
getMaximumSizegetMinimumSizeinstallListenersinstallUIuninstallDefaultsuninstallListenersuninstallUI

Constructor Detail

BasicToolBarSeparatorUIback to summary
public BasicToolBarSeparatorUI()

Constructs a BasicToolBarSeparatorUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicSeparatorUI.createUI.

Returns a new instance of BasicToolBarSeparatorUI.

Parameters
c:JComponent

a component

Returns:ComponentUI

a new instance of BasicToolBarSeparatorUI

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicSeparatorUI.getPreferredSize.

Doc from javax.swing.plaf.ComponentUI.getPreferredSize.

Returns the specified component's preferred size appropriate for the look and feel. If null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns null.

installDefaultsback to summary
protected void installDefaults(JSeparator s)

Overrides javax.swing.plaf.basic.BasicSeparatorUI.installDefaults.

Doc from javax.swing.plaf.basic.BasicSeparatorUI.installDefaults.

Installs default properties.

paintback to summary
public void paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicSeparatorUI.paint.

Doc from javax.swing.plaf.ComponentUI.paint.

Paints the specified component appropriately 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.