net.sourceforge.mlf.metouia
Class MetouiaToolBarUI

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 bynet.sourceforge.mlf.metouia.MetouiaToolBarUI
All Implemented Interfaces:
javax.swing.SwingConstants

public class MetouiaToolBarUI
extends javax.swing.plaf.metal.MetalToolBarUI

This class represents the UI delegate for the JToolBar component.


Nested Class Summary
 
Nested classes inherited from class javax.swing.plaf.metal.MetalToolBarUI
javax.swing.plaf.metal.MetalToolBarUI.MetalContainerListener, javax.swing.plaf.metal.MetalToolBarUI.MetalDockingListener, javax.swing.plaf.metal.MetalToolBarUI.MetalRolloverListener
 
Nested classes 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
 
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
MetouiaToolBarUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Creates the UI delegate for the given component.
 void installUI(javax.swing.JComponent c)
          Installs some default values for the given toolbar.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints the given component.
protected  void setBorderToRollover(java.awt.Component c)
          Sets the border of the given component to a rollover border.
 
Methods inherited from class javax.swing.plaf.metal.MetalToolBarUI
createContainerListener, createDockingListener, createNonRolloverBorder, createRolloverBorder, createRolloverListener, installListeners, setBorderToNonRollover, setDragOffset, uninstallListeners, 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, installDefaults, 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, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetouiaToolBarUI

public MetouiaToolBarUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Creates the UI delegate for the given component.

Parameters:
c - The component to create its UI delegate.
Returns:
The UI delegate for the given component.

installUI

public void installUI(javax.swing.JComponent c)
Installs some default values for the given toolbar. The gets a rollover property.

Parameters:
c - The reference of the toolbar to install its default values.

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints the given component.

Parameters:
g - The graphics context to use.
c - The component to paint.

setBorderToRollover

protected void setBorderToRollover(java.awt.Component c)
Sets the border of the given component to a rollover border.

Parameters:
c - The component to set its border.