APIdia Launch Partner
Top Description Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifPopupMenuSeparatorUI

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

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI
createUI(JComponent c)

Hides com.sun.java.swing.plaf.motif.MotifSeparatorUI.createUI.

Returns a new instance of BasicSeparatorUI.

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.

Constructor Detail

MotifPopupMenuSeparatorUIback to summary
public MotifPopupMenuSeparatorUI()

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides com.sun.java.swing.plaf.motif.MotifSeparatorUI.createUI.

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

Returns a new instance of BasicSeparatorUI.

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.

Annotations
@Override
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.

Annotations
@Override