org.noos.xing.mydoggy.plaf.ui.look
Class ToolWindowTitleBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by org.noos.xing.mydoggy.plaf.ui.look.ToolWindowTitleBarUI
All Implemented Interfaces:
PropertyChangeListener, EventListener, Cleaner

public class ToolWindowTitleBarUI
extends PanelUI
implements Cleaner, PropertyChangeListener

Author:
Angelo De Caro

Nested Class Summary
 class ToolWindowTitleBarUI.GradientAnimation
           
 class ToolWindowTitleBarUI.ToolWindowTitleBarDragListener
           
 
Field Summary
protected  ToolWindowTitleBarUI.GradientAnimation animation
           
protected  MutableColor animBackEnd
           
protected  MutableColor animBackStart
           
protected  MutableColor animTextColor
           
protected  ToolWindowDescriptor descriptor
           
protected  AbstractAnimation flashingAnimation
           
protected  boolean flashingState
           
protected  Timer flashingTimer
           
protected  int flasingDuration
           
protected  List<PopupUpdater> popupUpdaterList
           
protected  RemoveNotifyDragListener removeNotifyDragListener
           
protected  MouseListener titleBarMouseAdapter
           
protected  org.noos.xing.mydoggy.ToolWindow toolWindow
           
protected  ToolWindowTitleBar toolWindowTitleBar
           
protected  ExtendedTableLayout toolWindowTitleBarLayout
           
 
Constructor Summary
ToolWindowTitleBarUI()
           
 
Method Summary
 void cleanup()
           
static ComponentUI createUI(JComponent c)
           
protected  int getTitleWidth(Graphics g)
           
protected  void installComponents()
           
protected  void installDefaults(JComponent c)
           
protected  void installListeners(JComponent c)
           
 void installUI(JComponent c)
           
 void paint(Graphics g, JComponent c)
           
 void propertyChange(PropertyChangeEvent evt)
           
protected  void setIdOnTitleBarVisible(boolean visible)
           
protected  void uninstallDefaults(JComponent c)
           
protected  void uninstallListeners(JComponent c)
           
 void uninstallUI(JComponent c)
           
protected  void updateToolWindowTitleBar(Graphics g, JComponent c, Color backgroundStart, Color backgroundEnd, Color idBackgroundColor, Color idColor)
           
 
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
 

Field Detail

toolWindow

protected org.noos.xing.mydoggy.ToolWindow toolWindow

descriptor

protected ToolWindowDescriptor descriptor

animBackStart

protected MutableColor animBackStart

animBackEnd

protected MutableColor animBackEnd

animTextColor

protected MutableColor animTextColor

toolWindowTitleBar

protected ToolWindowTitleBar toolWindowTitleBar

toolWindowTitleBarLayout

protected ExtendedTableLayout toolWindowTitleBarLayout

titleBarMouseAdapter

protected MouseListener titleBarMouseAdapter

animation

protected ToolWindowTitleBarUI.GradientAnimation animation

flashingTimer

protected Timer flashingTimer

flasingDuration

protected int flasingDuration

flashingState

protected boolean flashingState

flashingAnimation

protected AbstractAnimation flashingAnimation

removeNotifyDragListener

protected RemoveNotifyDragListener removeNotifyDragListener

popupUpdaterList

protected List<PopupUpdater> popupUpdaterList
Constructor Detail

ToolWindowTitleBarUI

public ToolWindowTitleBarUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

cleanup

public void cleanup()
Specified by:
cleanup in interface Cleaner

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI

installDefaults

protected void installDefaults(JComponent c)

uninstallDefaults

protected void uninstallDefaults(JComponent c)

installListeners

protected void installListeners(JComponent c)

uninstallListeners

protected void uninstallListeners(JComponent c)

installComponents

protected void installComponents()

setIdOnTitleBarVisible

protected void setIdOnTitleBarVisible(boolean visible)

updateToolWindowTitleBar

protected void updateToolWindowTitleBar(Graphics g,
                                        JComponent c,
                                        Color backgroundStart,
                                        Color backgroundEnd,
                                        Color idBackgroundColor,
                                        Color idColor)

getTitleWidth

protected int getTitleWidth(Graphics g)


Copyright © 2012. All Rights Reserved.