com.birosoft.liquid
Class LiquidToolBarUI

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.birosoft.liquid.LiquidToolBarUI
All Implemented Interfaces:
javax.swing.SwingConstants

public class LiquidToolBarUI
extends javax.swing.plaf.basic.BasicToolBarUI

This class represents the UI delegate for the JToolBar component.


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
 
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
LiquidToolBarUI()
           
 
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 setBorderToNormal(java.awt.Component c)
           
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.basic.BasicToolBarUI
canDock, createDockingListener, createDragWindow, createFloatingFrame, createFloatingWindow, createFrameListener, createNonRolloverBorder, createPropertyListener, createRolloverBorder, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getNonRolloverBorder, getRolloverBorder, installComponents, installDefaults, installKeyboardActions, installListeners, installNonRolloverBorders, installNormalBorders, installRolloverBorders, isFloating, isRolloverBorders, navigateFocusedComp, paintDragWindow, setBorderToNonRollover, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiquidToolBarUI

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

Overrides:
installUI in class javax.swing.plaf.basic.BasicToolBarUI
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.

Overrides:
paint in class javax.swing.plaf.ComponentUI
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.

Overrides:
setBorderToRollover in class javax.swing.plaf.basic.BasicToolBarUI
Parameters:
c - The component to set its border.

setBorderToNormal

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