com.alee.laf.toolbar
Class WebToolBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ToolBarUI
          extended by javax.swing.plaf.basic.BasicToolBarUI
              extended by com.alee.laf.toolbar.WebToolBarUI
All Implemented Interfaces:
ShapeProvider, BorderMethods, SwingMethods, javax.swing.SwingConstants

public class WebToolBarUI
extends javax.swing.plaf.basic.BasicToolBarUI
implements ShapeProvider, BorderMethods

User: mgarin Date: 17.08.11 Time: 23:06


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicToolBarUI
javax.swing.plaf.basic.BasicToolBarUI.DockingListener, javax.swing.plaf.basic.BasicToolBarUI.DragWindow, javax.swing.plaf.basic.BasicToolBarUI.FrameListener, javax.swing.plaf.basic.BasicToolBarUI.PropertyListener, javax.swing.plaf.basic.BasicToolBarUI.ToolBarContListener, javax.swing.plaf.basic.BasicToolBarUI.ToolBarFocusListener
 
Field Summary
static int gripperSpace
           
 
Fields inherited from class javax.swing.plaf.basic.BasicToolBarUI
constraintBeforeFloating, dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKey
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
WebToolBarUI()
           
 
Method Summary
protected  javax.swing.plaf.basic.BasicToolBarUI.DragWindow createDragWindow(javax.swing.JToolBar toolbar)
           
protected  javax.swing.RootPaneContainer createFloatingWindow(javax.swing.JToolBar toolbar)
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Color getBorderColor()
           
 java.awt.Color getBottomBgColor()
           
 java.awt.Color getDisabledBorderColor()
           
 java.awt.Insets getMargin()
           
 Painter getPainter()
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
 int getRound()
           
 int getShadeWidth()
           
 int getSpacing()
           
 ToolbarStyle getToolbarStyle()
           
 java.awt.Color getTopBgColor()
           
protected  void installNonRolloverBorders(javax.swing.JComponent c)
           
protected  void installNormalBorders(javax.swing.JComponent c)
           
protected  void installRolloverBorders(javax.swing.JComponent c)
           
 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)
           
protected  void setBorderToNonRollover(java.awt.Component c)
           
protected  void setBorderToNormal(java.awt.Component c)
           
protected  void setBorderToRollover(java.awt.Component c)
           
 void setBottomBgColor(java.awt.Color bottomBgColor)
           
 void setDisabledBorderColor(java.awt.Color disabledBorderColor)
           
 void setMargin(java.awt.Insets margin)
           
 void setPainter(Painter painter)
           
 void setRound(int round)
           
 void setShadeWidth(int shadeWidth)
           
 void setSpacing(int spacing)
           
 void setToolbarStyle(ToolbarStyle toolbarStyle)
           
 void setTopBgColor(java.awt.Color topBgColor)
           
 void setUndecorated(boolean undecorated)
           
 void uninstallUI(javax.swing.JComponent c)
           
 void updateBorder()
          Updates custom WebLaF border.
 
Methods inherited from class javax.swing.plaf.basic.BasicToolBarUI
canDock, createDockingListener, createFloatingFrame, createFrameListener, createNonRolloverBorder, createPropertyListener, createRolloverBorder, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getNonRolloverBorder, getRolloverBorder, installComponents, installDefaults, installKeyboardActions, installListeners, isFloating, isRolloverBorders, navigateFocusedComp, paintDragWindow, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gripperSpace

public static final int gripperSpace
See Also:
Constant Field Values
Constructor Detail

WebToolBarUI

public WebToolBarUI()
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.BasicToolBarUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicToolBarUI

provideShape

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

Specified by:
provideShape in interface ShapeProvider
Returns:
component shape

isUndecorated

public boolean isUndecorated()

setUndecorated

public void setUndecorated(boolean undecorated)

getPainter

public Painter getPainter()

setPainter

public void setPainter(Painter painter)

getRound

public int getRound()

setRound

public void setRound(int round)

getTopBgColor

public java.awt.Color getTopBgColor()

setTopBgColor

public void setTopBgColor(java.awt.Color topBgColor)

getBottomBgColor

public java.awt.Color getBottomBgColor()

setBottomBgColor

public void setBottomBgColor(java.awt.Color bottomBgColor)

getBorderColor

public java.awt.Color getBorderColor()

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

getDisabledBorderColor

public java.awt.Color getDisabledBorderColor()

setDisabledBorderColor

public void setDisabledBorderColor(java.awt.Color disabledBorderColor)

getShadeWidth

public int getShadeWidth()

setShadeWidth

public void setShadeWidth(int shadeWidth)

getMargin

public java.awt.Insets getMargin()

setMargin

public void setMargin(java.awt.Insets margin)

getToolbarStyle

public ToolbarStyle getToolbarStyle()

setToolbarStyle

public void setToolbarStyle(ToolbarStyle toolbarStyle)

getSpacing

public int getSpacing()

setSpacing

public void setSpacing(int spacing)

updateBorder

public void updateBorder()
Updates custom WebLaF border.

Specified by:
updateBorder in interface BorderMethods

paint

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

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.ComponentUI

createFloatingWindow

protected javax.swing.RootPaneContainer createFloatingWindow(javax.swing.JToolBar toolbar)
Overrides:
createFloatingWindow in class javax.swing.plaf.basic.BasicToolBarUI

createDragWindow

protected javax.swing.plaf.basic.BasicToolBarUI.DragWindow createDragWindow(javax.swing.JToolBar toolbar)
Overrides:
createDragWindow in class javax.swing.plaf.basic.BasicToolBarUI

installRolloverBorders

protected void installRolloverBorders(javax.swing.JComponent c)
Overrides:
installRolloverBorders in class javax.swing.plaf.basic.BasicToolBarUI

installNonRolloverBorders

protected void installNonRolloverBorders(javax.swing.JComponent c)
Overrides:
installNonRolloverBorders in class javax.swing.plaf.basic.BasicToolBarUI

installNormalBorders

protected void installNormalBorders(javax.swing.JComponent c)
Overrides:
installNormalBorders in class javax.swing.plaf.basic.BasicToolBarUI

setBorderToRollover

protected void setBorderToRollover(java.awt.Component c)
Overrides:
setBorderToRollover in class javax.swing.plaf.basic.BasicToolBarUI

setBorderToNonRollover

protected void setBorderToNonRollover(java.awt.Component c)
Overrides:
setBorderToNonRollover in class javax.swing.plaf.basic.BasicToolBarUI

setBorderToNormal

protected void setBorderToNormal(java.awt.Component c)
Overrides:
setBorderToNormal in class javax.swing.plaf.basic.BasicToolBarUI