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
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate for
JToggleButton
.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.formdev.flatlaf.ui.FlatButtonUI
FlatButtonUI.FlatButtonListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected Color
protected int
Fields inherited from class com.formdev.flatlaf.ui.FlatButtonUI
background, buttonType, defaultBackground, defaultBoldText, defaultEndBackground, defaultFocusedBackground, defaultFocusedForeground, defaultForeground, defaultHoverBackground, defaultHoverForeground, defaultPressedBackground, defaultPressedForeground, defaultShadowColor, disabledBackground, disabledSelectedBackground, disabledSelectedForeground, disabledText, endBackground, focusedBackground, focusedForeground, foreground, hoverBackground, hoverForeground, iconTextGap, minimumHeight, minimumWidth, paintShadow, pressedBackground, pressedForeground, selectedBackground, selectedForeground, shadowColor, shadowWidth, squareSize, startBackground, toolbarDisabledSelectedBackground, toolbarDisabledSelectedForeground, toolbarHoverBackground, toolbarHoverForeground, toolbarPressedBackground, toolbarPressedForeground, toolbarSelectedBackground, toolbarSelectedForeground, TYPE_OTHER, TYPE_ROUND_RECT, TYPE_SQUARE
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
applyStyleProperty
(AbstractButton b, String key, Object value) static ComponentUI
protected Color
protected String
(package private) String
protected void
(package private) static boolean
protected void
protected void
protected void
Methods inherited from class com.formdev.flatlaf.ui.FlatButtonUI
applyStyle, buttonStateColor, createButtonListener, getBackground, getBackgroundBase, getBaseline, getBaselineImpl, getButtonType, getButtonTypeStr, getForegroundBase, getPreferredSize, getStyleableValue, installStyle, installUI, isBorderlessButton, isContentAreaFilled, isCustomBackground, isCustomForeground, isDefaultButton, isFocusPainted, isHelpButton, isIconOnlyOrSingleCharacterButton, isToolBarButton, paint, paintIcon, paintText, paintText, update
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
tabUnderlineHeight
protected int tabUnderlineHeight -
tabUnderlineColor
-
tabDisabledUnderlineColor
-
tabSelectedBackground
-
tabSelectedForeground
- Since:
- 2.3
-
tabHoverBackground
-
tabHoverForeground
- Since:
- 2.3
-
tabFocusBackground
-
tabFocusForeground
- Since:
- 2.3
-
defaults_initialized
private boolean defaults_initialized
-
-
Constructor Details
-
FlatToggleButtonUI
protected FlatToggleButtonUI(boolean shared)
-
-
Method Details
-
createUI
-
getStyleType
String getStyleType()- Overrides:
getStyleType
in classFlatButtonUI
-
getPropertyPrefix
- Overrides:
getPropertyPrefix
in classBasicButtonUI
-
installDefaults
- Overrides:
installDefaults
in classFlatButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaults
in classFlatButtonUI
-
propertyChange
- Overrides:
propertyChange
in classFlatButtonUI
-
applyStyleProperty
- Overrides:
applyStyleProperty
in classFlatButtonUI
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Overrides:
getStyleableInfos
in classFlatButtonUI
- Since:
- 2
-
isTabButton
-
paintBackground
- Overrides:
paintBackground
in classFlatButtonUI
-
getForeground
- Overrides:
getForeground
in classFlatButtonUI
-