esmska.integration.mac
Class UnifiedToolbarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ToolBarUI
          extended by esmska.integration.mac.UnifiedToolbarUI

public class UnifiedToolbarUI
extends javax.swing.plaf.ToolBarUI

Custom UI that paints Unified toolbar. This code is based on Mac Widgets.


Constructor Summary
UnifiedToolbarUI()
           
 
Method Summary
static void installSupport()
          Install support for unified toolbar.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints gradient.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnifiedToolbarUI

public UnifiedToolbarUI()
Method Detail

installSupport

public static void installSupport()
Install support for unified toolbar.


paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints gradient. Colors depends on focused state of main window.

Overrides:
paint in class javax.swing.plaf.ComponentUI
Parameters:
g - graphics
c - painted component