FileDocCategorySizeDatePackage
BasicToolBarSeparatorUI.javaAPI DocJava SE 5 API1611Fri Aug 26 14:58:06 BST 2005javax.swing.plaf.basic

BasicToolBarSeparatorUI

public class BasicToolBarSeparatorUI extends BasicSeparatorUI
A Basic L&F implementation of ToolBarSeparatorUI. This implementation is a "combined" view/controller.

version
1.13 12/19/03
author
Jeff Shapiro

Fields Summary
Constructors Summary
Methods Summary
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)

        return new BasicToolBarSeparatorUI();
    
public java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)

        Dimension size = ( (JToolBar.Separator)c ).getSeparatorSize();

	if ( size != null )
	{
	    return size.getSize();
	}
	else
	{
	    return null;
	}
    
protected voidinstallDefaults(javax.swing.JSeparator s)

        Dimension size = ( (JToolBar.Separator)s ).getSeparatorSize();

	if ( size == null || size instanceof UIResource )
	{
	    JToolBar.Separator sep = (JToolBar.Separator)s;
	    size = (Dimension)(UIManager.get("ToolBar.separatorSize"));
	    if (size != null) {
		if (sep.getOrientation() == JSeparator.HORIZONTAL) {
		    size = new Dimension(size.height, size.width);
		}
		sep.setSeparatorSize(size);
	    }
	}
    
public voidpaint(java.awt.Graphics g, javax.swing.JComponent c)