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.Color
tabDisabledUnderlineColor
protected java.awt.Color
tabFocusBackground
protected java.awt.Color
tabHoverBackground
protected java.awt.Color
tabSelectedBackground
protected java.awt.Color
tabUnderlineColor
protected int
tabUnderlineHeight
-
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.ComponentUI
createUI(javax.swing.JComponent c)
protected java.lang.String
getPropertyPrefix()
protected void
installDefaults(javax.swing.AbstractButton b)
protected void
paintBackground(java.awt.Graphics g, javax.swing.JComponent c)
protected void
propertyChange(javax.swing.AbstractButton b, java.beans.PropertyChangeEvent e)
protected void
uninstallDefaults(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:
getPropertyPrefix
in classjavax.swing.plaf.basic.BasicButtonUI
-
installDefaults
protected void installDefaults(javax.swing.AbstractButton b)
- Overrides:
installDefaults
in classFlatButtonUI
-
uninstallDefaults
protected void uninstallDefaults(javax.swing.AbstractButton b)
- Overrides:
uninstallDefaults
in classFlatButtonUI
-
propertyChange
protected void propertyChange(javax.swing.AbstractButton b, java.beans.PropertyChangeEvent e)
- Overrides:
propertyChange
in classFlatButtonUI
-
paintBackground
protected void paintBackground(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
paintBackground
in classFlatButtonUI
-
-