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 booleanprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected Colorprotected intFields 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_SQUAREFields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectapplyStyleProperty(AbstractButton b, String key, Object value) static ComponentUIprotected Colorprotected String(package private) Stringprotected void(package private) static booleanprotected voidprotected voidprotected voidMethods inherited from class com.formdev.flatlaf.ui.FlatButtonUI
applyStyle, buttonStateColor, createButtonListener, getBackground, getBackgroundBase, getBaseline, getBaselineImpl, getButtonType, getButtonTypeStr, getForegroundBase, getPreferredSize, getStyleableValue, installListeners, installStyle, installUI, isBorderlessButton, isContentAreaFilled, isCustomBackground, isCustomForeground, isDefaultButton, isFocusPainted, isHelpButton, isIconOnlyOrSingleCharacterButton, isToolBarButton, paint, paintIcon, paintText, paintText, uninstallListeners, updateMethods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, paintButtonPressed, paintFocus, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIMethods 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:
getStyleTypein classFlatButtonUI
-
getPropertyPrefix
- Overrides:
getPropertyPrefixin classBasicButtonUI
-
installDefaults
- Overrides:
installDefaultsin classFlatButtonUI
-
uninstallDefaults
- Overrides:
uninstallDefaultsin classFlatButtonUI
-
propertyChange
- Overrides:
propertyChangein classFlatButtonUI
-
applyStyleProperty
- Overrides:
applyStylePropertyin classFlatButtonUI- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Overrides:
getStyleableInfosin classFlatButtonUI- Since:
- 2
-
isTabButton
-
paintBackground
- Overrides:
paintBackgroundin classFlatButtonUI
-
getForeground
- Overrides:
getForegroundin classFlatButtonUI
-