org.jdesktop.swingx.plaf.misc
Class GlossyTaskPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.jdesktop.swingx.plaf.TaskPaneUI
org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI
org.jdesktop.swingx.plaf.misc.GlossyTaskPaneUI
public class GlossyTaskPaneUI
- extends BasicTaskPaneUI
Paints the JXTaskPane with a gradient in the title bar.
Methods inherited from class org.jdesktop.swingx.plaf.basic.BasicTaskPaneUI |
configure, createAction, createContentPaneBorder, createMouseInputListener, createPropertyListener, ensureVisible, getPreferredSize, getRoundHeight, getTitleHeight, installDefaults, installKeyboardActions, installListeners, installUI, isInBorder, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlossyTaskPaneUI
public GlossyTaskPaneUI()
createUI
public static ComponentUI createUI(JComponent c)
createPaneBorder
protected Border createPaneBorder()
- Description copied from class:
BasicTaskPaneUI
- Creates new border for task pane.
- Overrides:
createPaneBorder
in class BasicTaskPaneUI
- Returns:
- Fresh border on every call.
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 paintc
- 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)