Package com.formdev.flatlaf.ui
Class FlatToggleButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- com.formdev.flatlaf.ui.FlatButtonUI
-
- com.formdev.flatlaf.ui.FlatToggleButtonUI
-
public class FlatToggleButtonUI extends FlatButtonUI
Provides the Flat LaF UI delegate forJToggleButton.- UiDefault:
- ToggleButton.font Font, ToggleButton.background Color, ToggleButton.foreground Color, ToggleButton.border Border, ToggleButton.margin Insets, ToggleButton.rollover boolean , Component.focusWidth int, Button.arc int, ToggleButton.minimumWidth int, ToggleButton.iconTextGap int, ToggleButton.startBackground Color optional; if set, a gradient paint is used and ToggleButton.background is ignored, ToggleButton.endBackground Color optional; if set, a gradient paint is used, ToggleButton.pressedBackground Color, ToggleButton.selectedBackground Color, ToggleButton.selectedForeground Color, ToggleButton.disabledBackground Color optional, ToggleButton.disabledText Color, ToggleButton.disabledSelectedBackground Color, ToggleButton.toolbar.hoverBackground Color, ToggleButton.toolbar.pressedBackground Color, ToggleButton.toolbar.selectedBackground Color , ToggleButton.tab.underlineHeight int, ToggleButton.tab.underlineColor Color, ToggleButton.tab.disabledUnderlineColor Color, ToggleButton.tab.selectedBackground Color optional, ToggleButton.tab.hoverBackground Color, ToggleButton.tab.focusBackground Color
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.formdev.flatlaf.ui.FlatButtonUI
FlatButtonUI.FlatButtonListener
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.ColortabDisabledUnderlineColorprotected java.awt.ColortabFocusBackgroundprotected java.awt.ColortabHoverBackgroundprotected java.awt.ColortabSelectedBackgroundprotected java.awt.ColortabUnderlineColorprotected inttabUnderlineHeight-
Fields inherited from class com.formdev.flatlaf.ui.FlatButtonUI
background, defaultBackground, defaultBoldText, defaultEndBackground, defaultFocusedBackground, defaultForeground, defaultHoverBackground, defaultPressedBackground, defaultShadowColor, disabledBackground, disabledSelectedBackground, disabledText, endBackground, focusedBackground, foreground, hoverBackground, iconTextGap, minimumWidth, pressedBackground, selectedBackground, selectedForeground, shadowColor, shadowWidth, startBackground, toolbarHoverBackground, toolbarPressedBackground, toolbarSelectedBackground, toolbarSpacingInsets
-
-
Constructor Summary
Constructors Constructor Description FlatToggleButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected java.lang.StringgetPropertyPrefix()protected voidinstallDefaults(javax.swing.AbstractButton b)protected voidpaintBackground(java.awt.Graphics g, javax.swing.JComponent c)protected voidpropertyChange(javax.swing.AbstractButton b, java.beans.PropertyChangeEvent e)protected voiduninstallDefaults(javax.swing.AbstractButton b)-
Methods inherited from class com.formdev.flatlaf.ui.FlatButtonUI
buttonStateColor, createButtonListener, getBackground, getBackgroundBase, getForeground, getPreferredSize, isCustomBackground, isCustomForeground, isFocusPainted, paint, paintText, paintText, update
-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
-
-
-
Field Detail
-
tabUnderlineHeight
protected int tabUnderlineHeight
-
tabUnderlineColor
protected java.awt.Color tabUnderlineColor
-
tabDisabledUnderlineColor
protected java.awt.Color tabDisabledUnderlineColor
-
tabSelectedBackground
protected java.awt.Color tabSelectedBackground
-
tabHoverBackground
protected java.awt.Color tabHoverBackground
-
tabFocusBackground
protected java.awt.Color tabFocusBackground
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
getPropertyPrefix
protected java.lang.String getPropertyPrefix()
- Overrides:
getPropertyPrefixin classjavax.swing.plaf.basic.BasicButtonUI
-
installDefaults
protected void installDefaults(javax.swing.AbstractButton b)
- Overrides:
installDefaultsin classFlatButtonUI
-
uninstallDefaults
protected void uninstallDefaults(javax.swing.AbstractButton b)
- Overrides:
uninstallDefaultsin classFlatButtonUI
-
propertyChange
protected void propertyChange(javax.swing.AbstractButton b, java.beans.PropertyChangeEvent e)- Overrides:
propertyChangein classFlatButtonUI
-
paintBackground
protected void paintBackground(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintBackgroundin classFlatButtonUI
-
-