org.openbp.swing.plaf.sky
Class SkyPopupMenuSeparatorUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SeparatorUI
javax.swing.plaf.basic.BasicSeparatorUI
javax.swing.plaf.metal.MetalSeparatorUI
javax.swing.plaf.metal.MetalPopupMenuSeparatorUI
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
| Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI |
highlight, shadow |
|
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 |
SkyPopupMenuSeparatorUI
public SkyPopupMenuSeparatorUI()
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.