javax.swing.plaf.basic
Class BasicToolBarSeparatorUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SeparatorUI
          extended by javax.swing.plaf.basic.BasicSeparatorUI
              extended by javax.swing.plaf.basic.BasicToolBarSeparatorUI

public class BasicToolBarSeparatorUI
extends BasicSeparatorUI

The Basic Look and Feel UI delegate for Separator.


Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
 
Constructor Summary
BasicToolBarSeparatorUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
          Creates a new UI delegate for the given JComponent.
 Dimension getMaximumSize(JComponent c)
          This method returns the maximum size of the JComponent.
 Dimension getMinimumSize(JComponent c)
          This method returns the minimum size of the JComponent.
 Dimension getPreferredSize(JComponent c)
          This method returns the preferred size of the JComponent.
protected  void installDefaults(JSeparator s)
          This method installs the defaults that are given by the Basic L&F.
 void paint(Graphics g, JComponent c)
          This method does nothing as a Separator is just blank space.
 
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI
installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicToolBarSeparatorUI

public BasicToolBarSeparatorUI()
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.

installDefaults

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

Overrides:
installDefaults in class BasicSeparatorUI
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.

Overrides:
paint in class BasicSeparatorUI
Parameters:
g - The Graphics object to paint with
c - The JComponent to paint.

getPreferredSize

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

Overrides:
getPreferredSize in class BasicSeparatorUI
Parameters:
c - The JComponent to measure.
Returns:
The preferred size.

getMinimumSize

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

Overrides:
getMinimumSize in class BasicSeparatorUI
Parameters:
c - The JComponent to measure.
Returns:
The minimum size.

getMaximumSize

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

Overrides:
getMaximumSize in class BasicSeparatorUI
Parameters:
c - The JComponent to measure.
Returns:
The maximum size.