Package com.jgoodies.looks.plastic
Class PlasticMenuBarUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.MenuBarUI
-
- javax.swing.plaf.basic.BasicMenuBarUI
-
- com.jgoodies.looks.plastic.PlasticMenuBarUI
-
public final class PlasticMenuBarUI extends javax.swing.plaf.basic.BasicMenuBarUIThe JGoodies Plastic look and feel implemenation ofMenuBarUI. Can handle optionalBordertypes as specified by theBorderStyleorHeaderStyleclient properties.- Version:
- $Revision: 1.9 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.beans.PropertyChangeListenerlistener
-
Constructor Summary
Constructors Constructor Description PlasticMenuBarUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.beans.PropertyChangeListenercreateBorderStyleListener()static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent b)protected voidinstallDefaults()protected voidinstallListeners()voidinstallSpecialBorder()Installs a special border, if either a look-dependentBorderStyleor a look-independentHeaderStylehas been specified.private booleanis3D()Checks and answers if we should add a pseudo 3D effect.protected voiduninstallListeners()voidupdate(java.awt.Graphics g, javax.swing.JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallUI
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicMenuBarUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicMenuBarUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicMenuBarUI
-
createBorderStyleListener
private java.beans.PropertyChangeListener createBorderStyleListener()
-
installSpecialBorder
public void installSpecialBorder()
Installs a special border, if either a look-dependentBorderStyleor a look-independentHeaderStylehas been specified. A look specificBorderStyleshadows aHeaderStyle.We recommend to specify a
HeaderStyle.
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.swing.plaf.ComponentUI
-
is3D
private boolean is3D()
Checks and answers if we should add a pseudo 3D effect.
-
-