com.jgoodies.looks.plastic
Class PlasticToolBarUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ToolBarUI
          extended byjavax.swing.plaf.basic.BasicToolBarUI
              extended byjavax.swing.plaf.metal.MetalToolBarUI
                  extended bycom.jgoodies.looks.plastic.PlasticToolBarUI
All Implemented Interfaces:
SwingConstants

public final class PlasticToolBarUI
extends MetalToolBarUI

The JGoodies Plastic look and feel implementation of ToolBarUI.

Corrects the rollover borders and can handle optional Border types, as specified by the BorderStyle or HeaderStyle client properties.

Version:
$Revision: 1.2 $
Author:
Karsten Lentzsch

Nested Class Summary
 
Nested classes inherited from class javax.swing.plaf.metal.MetalToolBarUI
MetalToolBarUI.MetalContainerListener, MetalToolBarUI.MetalDockingListener, MetalToolBarUI.MetalRolloverListener
 
Nested classes inherited from class javax.swing.plaf.basic.BasicToolBarUI
BasicToolBarUI.DockingListener, BasicToolBarUI.DragWindow, BasicToolBarUI.FrameListener, BasicToolBarUI.PropertyListener, BasicToolBarUI.ToolBarContListener, BasicToolBarUI.ToolBarFocusListener
 
Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalToolBarUI
contListener, rolloverListener
 
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
PlasticToolBarUI()
           
 
Method Summary
protected  Border createRolloverBorder()
           
static ComponentUI createUI(JComponent b)
           
protected  void installDefaults()
          Installs a special border, if indicated by the HeaderStyle.
protected  void installListeners()
           
protected  void setBorderToRollover(Component c)
           
protected  void uninstallListeners()
           
 void update(Graphics g, JComponent c)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalToolBarUI
createContainerListener, createDockingListener, createNonRolloverBorder, createRolloverListener, installUI, setBorderToNonRollover, setDragOffset, uninstallUI
 
Methods inherited from class javax.swing.plaf.basic.BasicToolBarUI
canDock, createDragWindow, createFloatingFrame, createFloatingWindow, createFrameListener, createPropertyListener, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, installNonRolloverBorders, installNormalBorders, installRolloverBorders, isFloating, isRolloverBorders, navigateFocusedComp, setBorderToNormal, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, paint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlasticToolBarUI

public PlasticToolBarUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent b)

createRolloverBorder

protected Border createRolloverBorder()

setBorderToRollover

protected void setBorderToRollover(Component c)

installDefaults

protected void installDefaults()
Installs a special border, if indicated by the HeaderStyle.


installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

update

public void update(Graphics g,
                   JComponent c)


Copyright © 2001-2005 JGoodies Karsten Lentzsch. All Rights Reserved.