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 PropertyChangeListener
static ComponentUI
protected void
protected void
void
Installs a special border, if either a look-dependentBorderStyle
or a look-independentHeaderStyle
has been specified.private boolean
is3D()
Checks and answers if we should add a pseudo 3D effect.protected void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallUI
Methods 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:
installDefaults
in classBasicMenuBarUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicMenuBarUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicMenuBarUI
-
createBorderStyleListener
-
installSpecialBorder
public void installSpecialBorder()Installs a special border, if either a look-dependentBorderStyle
or a look-independentHeaderStyle
has been specified. A look specificBorderStyle
shadows aHeaderStyle
.We recommend to specify a
HeaderStyle
. -
update
- Overrides:
update
in classComponentUI
-
is3D
private boolean is3D()Checks and answers if we should add a pseudo 3D effect.
-