com.alee.laf.menu
Class WebMenuBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.MenuBarUI
          extended by javax.swing.plaf.basic.BasicMenuBarUI
              extended by com.alee.laf.menu.WebMenuBarUI
All Implemented Interfaces:
ShapeProvider, BorderMethods, SwingMethods

public class WebMenuBarUI
extends javax.swing.plaf.basic.BasicMenuBarUI
implements ShapeProvider, BorderMethods

User: mgarin Date: 15.08.11 Time: 20:24


Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicMenuBarUI
changeListener, containerListener, menuBar
 
Constructor Summary
WebMenuBarUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Color getBorderColor()
           
 MenuBarStyle getMenuBarStyle()
           
 int getRound()
           
 int getShadeWidth()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isUndecorated()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 java.awt.Shape provideShape()
          Returns component shape.
 void setBorderColor(java.awt.Color borderColor)
           
 void setMenuBarStyle(MenuBarStyle menuBarStyle)
           
 void setRound(int round)
           
 void setShadeWidth(int shadeWidth)
           
 void setUndecorated(boolean undecorated)
           
 void updateBorder()
          Updates custom WebLaF border.
 
Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebMenuBarUI

public WebMenuBarUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.basic.BasicMenuBarUI

provideShape

public java.awt.Shape provideShape()
Description copied from interface: ShapeProvider
Returns component shape.

Specified by:
provideShape in interface ShapeProvider
Returns:
component shape

updateBorder

public void updateBorder()
Updates custom WebLaF border.

Specified by:
updateBorder in interface BorderMethods

isUndecorated

public boolean isUndecorated()

setUndecorated

public void setUndecorated(boolean undecorated)

getMenuBarStyle

public MenuBarStyle getMenuBarStyle()

setMenuBarStyle

public void setMenuBarStyle(MenuBarStyle menuBarStyle)

getBorderColor

public java.awt.Color getBorderColor()

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

getRound

public int getRound()

setRound

public void setRound(int round)

getShadeWidth

public int getShadeWidth()

setShadeWidth

public void setShadeWidth(int shadeWidth)

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI