org.jdesktop.swingx.plaf.misc
Class GlossyTaskPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by org.jdesktop.swingx.plaf.TaskPaneUI
              extended by org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
                  extended by org.jdesktop.swingx.plaf.misc.GlossyTaskPaneUI

public class GlossyTaskPaneUI
extends BasicTaskPaneUI

Paints the JXTaskPane with a gradient in the title bar.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
BasicTaskPaneUI.ChevronIcon, BasicTaskPaneUI.ContentPaneBorder, BasicTaskPaneUI.PaneBorder
 
Field Summary
 
Fields inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
group, mouseListener, mouseOver, propertyListener, ROUND_HEIGHT, TITLE_HEIGHT
 
Constructor Summary
GlossyTaskPaneUI()
           
 
Method Summary
protected  Border createPaneBorder()
           
static ComponentUI createUI(JComponent c)
           
 void update(Graphics g, JComponent c)
          Overriden to paint the background of the component but keeping the rounded corners.
 
Methods inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
configure, createAction, createContentPaneBorder, createMouseInputListener, createPropertyListener, ensureVisible, getPreferredSize, getTitleHeight, installDefaults, installKeyboardActions, installListeners, installUI, isInBorder, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, paint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlossyTaskPaneUI

public GlossyTaskPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

createPaneBorder

protected Border createPaneBorder()
Overrides:
createPaneBorder in class BasicTaskPaneUI

update

public void update(Graphics g,
                   JComponent c)
Overriden to paint the background of the component but keeping the rounded corners.

Overrides:
update in class ComponentUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent), JComponent.paintComponent(java.awt.Graphics)