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

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.LabelUI
          extended by javax.swing.plaf.basic.BasicLabelUI
              extended by javax.swing.plaf.metal.MetalLabelUI
                  extended by org.noos.xing.mydoggy.plaf.ui.look.ToolWindowRepresentativeAnchorUI
All Implemented Interfaces:
PropertyChangeListener, EventListener, Cleaner

public class ToolWindowRepresentativeAnchorUI
extends MetalLabelUI
implements Cleaner

Author:
Angelo De Caro

Nested Class Summary
 class ToolWindowRepresentativeAnchorUI.GradientAnimation
           
 class ToolWindowRepresentativeAnchorUI.ToolWindowRepresentativeAnchorDragListener
           
 class ToolWindowRepresentativeAnchorUI.ToolWindowRepresentativeAnchorMouseAdapter
           
 
Field Summary
protected  ToolWindowRepresentativeAnchorUI.ToolWindowRepresentativeAnchorMouseAdapter adapter
           
protected  RepresentativeAnchorBalloonTip balloonTip
           
protected  ToolWindowDescriptor descriptor
           
protected  AbstractAnimation flashingAnimation
           
protected  MutableColor flashingAnimBackEnd
           
protected  MutableColor flashingAnimBackStart
           
protected  boolean flashingState
           
protected  Timer flashingTimer
           
protected  int flasingDuration
           
protected  LineBorder labelBorder
           
protected  TranslucentPanel previewPanel
           
protected  RemoveNotifyDragListener removeNotifyDragListener
           
protected  ToolWindowRepresentativeAnchor representativeAnchor
           
protected  org.noos.xing.mydoggy.RepresentativeAnchorDescriptor representativeAnchorDescriptor
           
protected  boolean representativeAnchorVisible
           
protected  org.noos.xing.mydoggy.ToolWindow toolWindow
           
 
Fields inherited from class javax.swing.plaf.metal.MetalLabelUI
metalLabelUI
 
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
 
Constructor Summary
ToolWindowRepresentativeAnchorUI()
           
 
Method Summary
 void cleanup()
           
static ComponentUI createUI(JComponent c)
           
protected  void hideAllPreview()
           
protected  void installDefaults(JLabel c)
           
protected  void installListeners(JLabel c)
           
 void installUI(JComponent c)
           
protected  boolean isFlashing()
           
 void propertyChange(PropertyChangeEvent e)
           
protected  void uninstallListeners(JLabel c)
           
 void uninstallUI(JComponent c)
           
 void update(Graphics g, JComponent c)
           
protected  void updateAnchor(Graphics g, JComponent c, Color backgroundStart, Color backgroundEnd, boolean active, boolean flashing)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalLabelUI
paintDisabledText
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, layoutCL, paint, paintEnabledText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

representativeAnchor

protected ToolWindowRepresentativeAnchor representativeAnchor

labelBorder

protected LineBorder labelBorder

descriptor

protected ToolWindowDescriptor descriptor

toolWindow

protected org.noos.xing.mydoggy.ToolWindow toolWindow

representativeAnchorDescriptor

protected org.noos.xing.mydoggy.RepresentativeAnchorDescriptor representativeAnchorDescriptor

adapter

protected ToolWindowRepresentativeAnchorUI.ToolWindowRepresentativeAnchorMouseAdapter adapter

flashingTimer

protected Timer flashingTimer

flasingDuration

protected int flasingDuration

flashingState

protected boolean flashingState

flashingAnimBackStart

protected MutableColor flashingAnimBackStart

flashingAnimBackEnd

protected MutableColor flashingAnimBackEnd

flashingAnimation

protected AbstractAnimation flashingAnimation

previewPanel

protected TranslucentPanel previewPanel

balloonTip

protected RepresentativeAnchorBalloonTip balloonTip

representativeAnchorVisible

protected boolean representativeAnchorVisible

removeNotifyDragListener

protected RemoveNotifyDragListener removeNotifyDragListener
Constructor Detail

ToolWindowRepresentativeAnchorUI

public ToolWindowRepresentativeAnchorUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class BasicLabelUI

cleanup

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

installUI

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

uninstallUI

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

update

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

installDefaults

protected void installDefaults(JLabel c)
Overrides:
installDefaults in class BasicLabelUI

installListeners

protected void installListeners(JLabel c)
Overrides:
installListeners in class BasicLabelUI

uninstallListeners

protected void uninstallListeners(JLabel c)
Overrides:
uninstallListeners in class BasicLabelUI

updateAnchor

protected void updateAnchor(Graphics g,
                            JComponent c,
                            Color backgroundStart,
                            Color backgroundEnd,
                            boolean active,
                            boolean flashing)

hideAllPreview

protected void hideAllPreview()

isFlashing

protected boolean isFlashing()


Copyright © 2012. All Rights Reserved.