Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.gui.flowin.plaf
Class TitleBarUI  view TitleBarUI download TitleBarUI.java

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended bycom.imagero.gui.flowin.plaf.TitleBarUI
Direct Known Subclasses:
BasicTitleBarUI

public class TitleBarUI
extends javax.swing.plaf.ComponentUI


Field Summary
protected  javax.swing.Icon closeIcon
           
protected  javax.swing.Icon closeIconOver
           
protected  javax.swing.Icon closeIconPressed
           
protected  javax.swing.Icon dockIcon
           
protected  javax.swing.Icon dockIconOver
           
protected  javax.swing.Icon dockIconPressed
           
private static TitleBarUI instance
           
protected  javax.swing.Icon maxIcon
           
protected  javax.swing.Icon maxIconOver
           
protected  javax.swing.Icon maxIconPressed
           
protected  javax.swing.Icon minIcon
           
protected  javax.swing.Icon minIconOver
           
protected  javax.swing.Icon minIconPressed
           
protected  javax.swing.Icon paletteCloseIcon
           
protected  javax.swing.Icon paletteCloseIconOver
           
protected  javax.swing.Icon paletteCloseIconPressed
           
protected  javax.swing.Icon restoreIcon
           
protected  javax.swing.Icon restoreIconOver
           
protected  javax.swing.Icon restoreIconPressed
           
protected  javax.swing.Icon systemIcon
           
protected  javax.swing.Icon systemIconOver
           
protected  javax.swing.Icon systemIconPressed
           
protected  javax.swing.Icon undockIcon
           
protected  javax.swing.Icon undockIconOver
           
protected  javax.swing.Icon undockIconPressed
           
 
Constructor Summary
TitleBarUI()
           
 
Method Summary
protected  javax.swing.AbstractButton createButton(com.imagero.gui.flowin.TitleBar tb, javax.swing.Icon icon, javax.swing.Icon overIcon, javax.swing.Icon pressedIcon, java.lang.String command)
           
protected  javax.swing.JLabel createGlueLabel(com.imagero.gui.flowin.TitleBar tb)
           
private  javax.swing.Icon createIcon(com.imagero.res.ResourceReader reader, com.imagero.res.Resource res, java.lang.String description)
           
protected  void createIcons()
           
protected  javax.swing.AbstractButton createSystemButton(com.imagero.gui.flowin.TitleBar tb, javax.swing.Icon icon)
           
static TitleBarUI createUI()
           
 javax.swing.Icon getCloseIcon()
           
 javax.swing.Icon getClosePressedIcon()
           
 javax.swing.Icon getCloseRolloverIcon()
           
 javax.swing.Icon getDockIcon()
           
 javax.swing.Icon getDockPressedIcon()
           
 javax.swing.Icon getDockRolloverIcon()
           
 javax.swing.Icon getMaxIcon()
           
 javax.swing.Icon getMaxPressedIcon()
           
 javax.swing.Icon getMaxRolloverIcon()
           
 javax.swing.Icon getMinIcon()
           
 javax.swing.Icon getMinPressedIcon()
           
 javax.swing.Icon getMinRolloverIcon()
           
 javax.swing.Icon getPaletteCloseIcon()
           
 javax.swing.Icon getPressedSystemIcon(com.imagero.gui.flowin.TitleBar tb)
           
 javax.swing.Icon getRestoreIcon()
           
 javax.swing.Icon getRestorePressedIcon()
           
 javax.swing.Icon getRestoreRolloverIcon()
           
 javax.swing.Icon getSystemIcon(com.imagero.gui.flowin.TitleBar tb)
           
 javax.swing.Icon getUndockIcon()
           
 javax.swing.Icon getUndockPressedIcon()
           
 javax.swing.Icon getUndockRolloverIcon()
           
protected  void installDefaults(com.imagero.gui.flowin.TitleBar tb)
           
 void installUI(javax.swing.JComponent c)
          Sets up the specified component so it conforms the the design guidelines of the implemented look and feel.
 void uninstallUI(javax.swing.JComponent c)
          Puts the specified component into the state it had before installUI(javax.swing.JComponent) 55 was called.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static TitleBarUI instance

maxIcon

protected javax.swing.Icon maxIcon

minIcon

protected javax.swing.Icon minIcon

restoreIcon

protected javax.swing.Icon restoreIcon

closeIcon

protected javax.swing.Icon closeIcon

dockIcon

protected javax.swing.Icon dockIcon

undockIcon

protected javax.swing.Icon undockIcon

paletteCloseIcon

protected javax.swing.Icon paletteCloseIcon

systemIcon

protected javax.swing.Icon systemIcon

maxIconOver

protected javax.swing.Icon maxIconOver

minIconOver

protected javax.swing.Icon minIconOver

restoreIconOver

protected javax.swing.Icon restoreIconOver

closeIconOver

protected javax.swing.Icon closeIconOver

dockIconOver

protected javax.swing.Icon dockIconOver

undockIconOver

protected javax.swing.Icon undockIconOver

paletteCloseIconOver

protected javax.swing.Icon paletteCloseIconOver

systemIconOver

protected javax.swing.Icon systemIconOver

maxIconPressed

protected javax.swing.Icon maxIconPressed

minIconPressed

protected javax.swing.Icon minIconPressed

restoreIconPressed

protected javax.swing.Icon restoreIconPressed

closeIconPressed

protected javax.swing.Icon closeIconPressed

dockIconPressed

protected javax.swing.Icon dockIconPressed

undockIconPressed

protected javax.swing.Icon undockIconPressed

paletteCloseIconPressed

protected javax.swing.Icon paletteCloseIconPressed

systemIconPressed

protected javax.swing.Icon systemIconPressed
Constructor Detail

TitleBarUI

public TitleBarUI()
Method Detail

createUI

public static TitleBarUI createUI()

installUI

public void installUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.ComponentUI
Sets up the specified component so it conforms the the design guidelines of the implemented look and feel. When the look and feel changes, a ComponentUI delegate is created. The delegate object then receives an installUI message.

This method should perform the following tasks:

  • Set visual properties such as borders, fonts, colors, or icons. However, no change should be performed for those properties whose values have been directly set by the client application. To allow the distinction, LookAndFeels are expected to use values that implement the javax.swing.plaf.UIResource marker interface, such as javax.swing.plaf.BorderUIResource or javax.swing.plaf.ColorUIResource.
  • If necessary, install a java.awt.LayoutManager.
  • Embed custom sub-components. For instance, the UI delegate for a javax.swing.JSplitPane might install a special component for the divider.
  • Register event listeners.
  • Set up properties related to keyborad navigation, such as mnemonics or focus traversal policies.


uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Description copied from class: javax.swing.plaf.ComponentUI
Puts the specified component into the state it had before ComponentUI.installUI(javax.swing.JComponent)>ComponentUI.installUI(javax.swing.JComponent) 55 was called.


installDefaults

protected void installDefaults(com.imagero.gui.flowin.TitleBar tb)

createGlueLabel

protected javax.swing.JLabel createGlueLabel(com.imagero.gui.flowin.TitleBar tb)

createSystemButton

protected javax.swing.AbstractButton createSystemButton(com.imagero.gui.flowin.TitleBar tb,
                                                        javax.swing.Icon icon)

createButton

protected javax.swing.AbstractButton createButton(com.imagero.gui.flowin.TitleBar tb,
                                                  javax.swing.Icon icon,
                                                  javax.swing.Icon overIcon,
                                                  javax.swing.Icon pressedIcon,
                                                  java.lang.String command)

createIcons

protected void createIcons()

createIcon

private javax.swing.Icon createIcon(com.imagero.res.ResourceReader reader,
                                    com.imagero.res.Resource res,
                                    java.lang.String description)

getMaxIcon

public javax.swing.Icon getMaxIcon()

getMaxRolloverIcon

public javax.swing.Icon getMaxRolloverIcon()

getMaxPressedIcon

public javax.swing.Icon getMaxPressedIcon()

getMinIcon

public javax.swing.Icon getMinIcon()

getMinRolloverIcon

public javax.swing.Icon getMinRolloverIcon()

getMinPressedIcon

public javax.swing.Icon getMinPressedIcon()

getCloseIcon

public javax.swing.Icon getCloseIcon()

getCloseRolloverIcon

public javax.swing.Icon getCloseRolloverIcon()

getClosePressedIcon

public javax.swing.Icon getClosePressedIcon()

getPaletteCloseIcon

public javax.swing.Icon getPaletteCloseIcon()

getSystemIcon

public javax.swing.Icon getSystemIcon(com.imagero.gui.flowin.TitleBar tb)

getPressedSystemIcon

public javax.swing.Icon getPressedSystemIcon(com.imagero.gui.flowin.TitleBar tb)

getRestoreIcon

public javax.swing.Icon getRestoreIcon()

getRestoreRolloverIcon

public javax.swing.Icon getRestoreRolloverIcon()

getRestorePressedIcon

public javax.swing.Icon getRestorePressedIcon()

getDockIcon

public javax.swing.Icon getDockIcon()

getDockRolloverIcon

public javax.swing.Icon getDockRolloverIcon()

getDockPressedIcon

public javax.swing.Icon getDockPressedIcon()

getUndockIcon

public javax.swing.Icon getUndockIcon()

getUndockRolloverIcon

public javax.swing.Icon getUndockRolloverIcon()

getUndockPressedIcon

public javax.swing.Icon getUndockPressedIcon()