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

public Class BasicPopupMenuSeparatorUI

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

A Basic L&F implementation of PopupMenuSeparatorUI. 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
BasicPopupMenuSeparatorUI()

Constructs a BasicPopupMenuSeparatorUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

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

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

Returns a new instance of BasicPopupMenuSeparatorUI.

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.

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:
getMaximumSizegetMinimumSizeinstallDefaultsinstallListenersinstallUIuninstallDefaultsuninstallListenersuninstallUI

Constructor Detail

BasicPopupMenuSeparatorUIback to summary
public BasicPopupMenuSeparatorUI()

Constructs a BasicPopupMenuSeparatorUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

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

Returns a new instance of BasicPopupMenuSeparatorUI.

Parameters
c:JComponent

a component

Returns:ComponentUI

a new instance of BasicPopupMenuSeparatorUI

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.

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.