public class DockViewTitleBarUI
extends javax.swing.plaf.PanelUI
implements java.beans.PropertyChangeListener
DockViewTitleBar
.Modifier and Type | Field and Description |
---|---|
protected DockViewTitleBar |
titleBar |
Constructor and Description |
---|
DockViewTitleBarUI(DockViewTitleBar tb) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSeparator() |
protected void |
configureAttachButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for an attach button
|
protected void |
configureButtons(DockViewTitleBar tb)
Update the buttons to track state changes (for example, the maximize button can become "restore"
when the view is maximized.
|
protected void |
configureCloseButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a close button
|
protected void |
configureDockButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a dock button
|
protected void |
configureFloatButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a float button
|
protected void |
configureHelpButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for the help button
|
protected void |
configureHideButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a hide button
|
protected void |
configureMaximizeButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a maximize button
|
protected void |
configureRestoreButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a restore button.
|
protected void |
configureSortButton(javax.swing.JToggleButton btn)
installs the icons and tooltip suitable for the sort button
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
protected void |
initButton(javax.swing.JButton btn,
java.awt.Insets insets,
javax.swing.border.Border border) |
protected void |
initButton(javax.swing.JToggleButton btn,
java.awt.Insets insets,
javax.swing.border.Border border) |
protected void |
installBackground()
Installs the default background of the title bar
|
protected void |
installButtons()
configure the title bar buttons
|
protected void |
installLabel()
Installs default on the titlebar label
|
protected void |
installTitleBorder(javax.swing.JComponent c)
installs the border of the title bar
|
void |
installUI(javax.swing.JComponent c) |
protected int |
isSortable()
Returns 1 if whole genome panel and multi contigs.
|
protected void |
layoutTitleBar() |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Custom title bar painting : uses a gradient from the background color
to the control highlight color.
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Listen to property changes in the DockKey or the title bar
|
protected void |
uninstallTitleBorder(javax.swing.JComponent c)
uninstalls the icons and tooltip suitable for a close button
|
void |
uninstallUI(javax.swing.JComponent c) |
protected DockViewTitleBar titleBar
public DockViewTitleBarUI(DockViewTitleBar tb)
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
protected void layoutTitleBar()
protected void addSeparator()
protected int isSortable()
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
protected void installLabel()
protected void installBackground()
protected void installButtons()
protected void initButton(javax.swing.JButton btn, java.awt.Insets insets, javax.swing.border.Border border)
protected void initButton(javax.swing.JToggleButton btn, java.awt.Insets insets, javax.swing.border.Border border)
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
protected void configureButtons(DockViewTitleBar tb)
protected void configureCloseButton(javax.swing.JButton btn)
protected void configureMaximizeButton(javax.swing.JButton btn)
protected void configureRestoreButton(javax.swing.JButton btn)
protected void configureHideButton(javax.swing.JButton btn)
protected void configureDockButton(javax.swing.JButton btn)
protected void configureFloatButton(javax.swing.JButton btn)
protected void configureAttachButton(javax.swing.JButton btn)
protected void configureHelpButton(javax.swing.JButton btn)
protected void configureSortButton(javax.swing.JToggleButton btn)
protected void installTitleBorder(javax.swing.JComponent c)
protected void uninstallTitleBorder(javax.swing.JComponent c)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.