org.openbp.swing.plaf.sky
Class SkyPopupMenuSeparatorUI

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.metal.MetalSeparatorUI
                  extended by javax.swing.plaf.metal.MetalPopupMenuSeparatorUI
                      extended by org.openbp.swing.plaf.sky.SkyPopupMenuSeparatorUI

public class SkyPopupMenuSeparatorUI
extends javax.swing.plaf.metal.MetalPopupMenuSeparatorUI

This is the default UI for a PopupMenuSeparator.

Author:
Jens Ferchland

Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
 
Constructor Summary
SkyPopupMenuSeparatorUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Create and returns a instance of the UI.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Returns the size of the Separator.
 void installUI(javax.swing.JComponent c)
          Installs the UI to a JButton.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the UI.
 
Methods inherited from class javax.swing.plaf.metal.MetalSeparatorUI
installDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI
getMaximumSize, getMinimumSize, installListeners, uninstallDefaults, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyPopupMenuSeparatorUI

public SkyPopupMenuSeparatorUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Create and returns a instance of the UI.

Parameters:
c - the Separator
Returns:
the

installUI

public void installUI(javax.swing.JComponent c)
Installs the UI to a JButton. This method sets all Listeners, which are used to control the button.

Overrides:
installUI in class javax.swing.plaf.basic.BasicSeparatorUI
Parameters:
c - a JComponent value

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints the UI.

Overrides:
paint in class javax.swing.plaf.metal.MetalPopupMenuSeparatorUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Returns the size of the Separator.

Overrides:
getPreferredSize in class javax.swing.plaf.metal.MetalPopupMenuSeparatorUI


Copyright © 2011. All Rights Reserved.