com.alee.laf.toolbar
Class WebToolBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ToolBarUI
javax.swing.plaf.basic.BasicToolBarUI
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 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 |
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 |
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 |
gripperSpace
public static final int gripperSpace
- See Also:
- Constant Field Values
WebToolBarUI
public WebToolBarUI()
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