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
The JGoodies Plastic look and feel implemenation of
MenuBarUI.
Can handle optional Border types as specified by the
BorderStyle or HeaderStyle client properties.- Version:
- $Revision: 1.9 $
-
Field Summary
FieldsFields inherited from class javax.swing.plaf.basic.BasicMenuBarUI
changeListener, containerListener, menuBar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate PropertyChangeListenerstatic ComponentUIprotected voidprotected voidvoidInstalls 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 voidvoidupdate(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, paint
-
Field Details
-
listener
-
-
Constructor Details
-
PlasticMenuBarUI
public PlasticMenuBarUI()
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicMenuBarUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicMenuBarUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicMenuBarUI
-
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
- Overrides:
updatein classComponentUI
-
is3D
private boolean is3D()Checks and answers if we should add a pseudo 3D effect.
-