Class HudComboBoxUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ComboBoxUI
-
- javax.swing.plaf.basic.BasicComboBoxUI
-
- com.explodingpixels.macwidgets.plaf.HudComboBoxUI
-
public class HudComboBoxUI extends javax.swing.plaf.basic.BasicComboBoxUICreates a Heads Up Display (HUD) style combo box, similar to that seen in various iApps (e.g. iPhoto).

-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager, javax.swing.plaf.basic.BasicComboBoxUI.FocusHandler, javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler, javax.swing.plaf.basic.BasicComboBoxUI.KeyHandler, javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler, javax.swing.plaf.basic.BasicComboBoxUI.PropertyChangeHandler
-
-
Field Summary
-
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxUI
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton
-
-
Constructor Summary
Constructors Constructor Description HudComboBoxUI()Creates a HUD styleComboBoxUI.HudComboBoxUI(boolean isDarkColorScheme)Creates a HUD styleComboBoxUI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.JButtoncreateArrowButton()protected java.awt.LayoutManagercreateLayoutManager()protected javax.swing.plaf.basic.ComboPopupcreatePopup()protected javax.swing.ListCellRenderercreateRenderer()protected java.awt.DimensiongetDefaultSize()protected java.awt.DimensiongetDisplaySize()java.awt.DimensiongetMinimumSize(javax.swing.JComponent c)protected voidinstallComponents()protected voidinstallDefaults()protected voidinstallListeners()voidpaint(java.awt.Graphics g, javax.swing.JComponent c)voidpaintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)protected voiduninstallDefaults()protected voiduninstallListeners()-
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
addEditor, configureArrowButton, configureEditor, createEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getInsets, getMaximumSize, getPreferredSize, getSizeForComponent, installKeyboardActions, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValueBackground, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, unconfigureEditor, uninstallComponents, uninstallKeyboardActions, uninstallUI
-
-
-
-
Method Detail
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicComboBoxUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicComboBoxUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicComboBoxUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classjavax.swing.plaf.basic.BasicComboBoxUI
-
installComponents
protected void installComponents()
- Overrides:
installComponentsin classjavax.swing.plaf.basic.BasicComboBoxUI
-
createArrowButton
protected javax.swing.JButton createArrowButton()
- Overrides:
createArrowButtonin classjavax.swing.plaf.basic.BasicComboBoxUI
-
createRenderer
protected javax.swing.ListCellRenderer createRenderer()
- Overrides:
createRendererin classjavax.swing.plaf.basic.BasicComboBoxUI
-
createPopup
protected javax.swing.plaf.basic.ComboPopup createPopup()
- Overrides:
createPopupin classjavax.swing.plaf.basic.BasicComboBoxUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSizein classjavax.swing.plaf.basic.BasicComboBoxUI
-
getDefaultSize
protected java.awt.Dimension getDefaultSize()
- Overrides:
getDefaultSizein classjavax.swing.plaf.basic.BasicComboBoxUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.basic.BasicComboBoxUI
-
paintCurrentValue
public void paintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)- Overrides:
paintCurrentValuein classjavax.swing.plaf.basic.BasicComboBoxUI
-
getDisplaySize
protected java.awt.Dimension getDisplaySize()
- Overrides:
getDisplaySizein classjavax.swing.plaf.basic.BasicComboBoxUI
-
createLayoutManager
protected java.awt.LayoutManager createLayoutManager()
- Overrides:
createLayoutManagerin classjavax.swing.plaf.basic.BasicComboBoxUI
-
-