javax.swing.plaf.basic

Class BasicToolBarSeparatorUI

public class BasicToolBarSeparatorUI extends BasicSeparatorUI

The Basic Look and Feel UI delegate for Separator.
Method Summary
static ComponentUIcreateUI(JComponent c)
Creates a new UI delegate for the given JComponent.
DimensiongetMaximumSize(JComponent c)
This method returns the maximum size of the JComponent.
DimensiongetMinimumSize(JComponent c)
This method returns the minimum size of the JComponent.
DimensiongetPreferredSize(JComponent c)
This method returns the preferred size of the JComponent.
protected voidinstallDefaults(JSeparator s)
This method installs the defaults that are given by the Basic L&F.
voidpaint(Graphics g, JComponent c)
This method does nothing as a Separator is just blank space.

Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Creates a new UI delegate for the given JComponent.

Parameters: c The JComponent to create a delegate for.

Returns: A new BasicToolBarSeparatorUI.

getMaximumSize

public Dimension getMaximumSize(JComponent c)
This method returns the maximum size of the JComponent.

Parameters: c The JComponent to measure.

Returns: The maximum size.

getMinimumSize

public Dimension getMinimumSize(JComponent c)
This method returns the minimum size of the JComponent.

Parameters: c The JComponent to measure.

Returns: The minimum size.

getPreferredSize

public Dimension getPreferredSize(JComponent c)
This method returns the preferred size of the JComponent.

Parameters: c The JComponent to measure.

Returns: The preferred size.

installDefaults

protected void installDefaults(JSeparator s)
This method installs the defaults that are given by the Basic L&F.

Parameters: s The Separator that is being installed.

paint

public void paint(Graphics g, JComponent c)
This method does nothing as a Separator is just blank space.

Parameters: g The Graphics object to paint with c The JComponent to paint.