Class FlatButtonUI

  • All Implemented Interfaces:
    FlatStylingSupport.StyleableUI
    Direct Known Subclasses:
    FlatToggleButtonUI

    public class FlatButtonUI
    extends BasicButtonUI
    implements FlatStylingSupport.StyleableUI
    Provides the Flat LaF UI delegate for JButton.
    UiDefault:
    Button.font Font, Button.background Color, Button.foreground Color, Button.border Border, Button.margin Insets, Button.rollover boolean , Button.minimumWidth int, Button.iconTextGap int, Button.startBackground Color optional; if set, a gradient paint is used and Button.background is ignored, Button.endBackground Color optional; if set, a gradient paint is used, Button.focusedBackground Color optional, Button.focusedForeground Color optional, Button.hoverBackground Color optional, Button.hoverForeground Color optional, Button.pressedBackground Color optional, Button.pressedForeground Color optional, Button.selectedBackground Color, Button.selectedForeground Color, Button.disabledBackground Color optional, Button.disabledText Color, Button.disabledSelectedBackground Color, Button.disabledSelectedForeground Color optional, Button.default.background Color, Button.default.startBackground Color optional; if set, a gradient paint is used and Button.default.background is ignored, Button.default.endBackground Color optional; if set, a gradient paint is used, Button.default.foreground Color, Button.default.focusedBackground Color optional, Button.default.focusedForeground Color optional, Button.default.hoverBackground Color optional, Button.default.hoverForeground Color optional, Button.default.pressedBackground Color optional, Button.default.pressedForeground Color optional, Button.default.boldText boolean, Button.paintShadow boolean default is false, Button.shadowWidth int default is 2, Button.shadowColor Color optional, Button.default.shadowColor Color optional, Button.toolbar.spacingInsets Insets, Button.toolbar.hoverBackground Color, Button.toolbar.hoverForeground Color optional, Button.toolbar.pressedBackground Color, Button.toolbar.pressedForeground Color optional, Button.toolbar.selectedBackground Color, Button.toolbar.selectedForeground Color optional, Button.toolbar.disabledSelectedBackground Color optional, Button.toolbar.disabledSelectedForeground Color optional
    • Field Detail

      • minimumWidth

        protected int minimumWidth
      • iconTextGap

        protected int iconTextGap
      • background

        protected Color background
      • foreground

        protected Color foreground
      • startBackground

        protected Color startBackground
      • endBackground

        protected Color endBackground
      • focusedBackground

        protected Color focusedBackground
      • focusedForeground

        protected Color focusedForeground
        Since:
        2.3
      • hoverBackground

        protected Color hoverBackground
      • hoverForeground

        protected Color hoverForeground
        Since:
        2.3
      • pressedBackground

        protected Color pressedBackground
      • pressedForeground

        protected Color pressedForeground
        Since:
        2.3
      • selectedBackground

        protected Color selectedBackground
      • selectedForeground

        protected Color selectedForeground
      • disabledBackground

        protected Color disabledBackground
      • disabledText

        protected Color disabledText
      • disabledSelectedBackground

        protected Color disabledSelectedBackground
      • disabledSelectedForeground

        protected Color disabledSelectedForeground
        Since:
        2.3
      • defaultBackground

        protected Color defaultBackground
      • defaultEndBackground

        protected Color defaultEndBackground
      • defaultForeground

        protected Color defaultForeground
      • defaultFocusedBackground

        protected Color defaultFocusedBackground
      • defaultFocusedForeground

        protected Color defaultFocusedForeground
        Since:
        2.3
      • defaultHoverBackground

        protected Color defaultHoverBackground
      • defaultHoverForeground

        protected Color defaultHoverForeground
        Since:
        2.3
      • defaultPressedBackground

        protected Color defaultPressedBackground
      • defaultPressedForeground

        protected Color defaultPressedForeground
        Since:
        2.3
      • defaultBoldText

        protected boolean defaultBoldText
      • paintShadow

        protected boolean paintShadow
      • shadowWidth

        protected int shadowWidth
      • shadowColor

        protected Color shadowColor
      • defaultShadowColor

        protected Color defaultShadowColor
      • toolbarHoverBackground

        protected Color toolbarHoverBackground
      • toolbarHoverForeground

        protected Color toolbarHoverForeground
        Since:
        2.3
      • toolbarPressedBackground

        protected Color toolbarPressedBackground
      • toolbarPressedForeground

        protected Color toolbarPressedForeground
        Since:
        2.3
      • toolbarSelectedBackground

        protected Color toolbarSelectedBackground
      • toolbarSelectedForeground

        protected Color toolbarSelectedForeground
        Since:
        2.3
      • toolbarDisabledSelectedBackground

        protected Color toolbarDisabledSelectedBackground
        Since:
        2.3
      • toolbarDisabledSelectedForeground

        protected Color toolbarDisabledSelectedForeground
        Since:
        2.3
      • buttonType

        protected String buttonType
        Since:
        2
      • squareSize

        protected boolean squareSize
        Since:
        2
      • minimumHeight

        protected int minimumHeight
        Since:
        2
    • Constructor Detail

      • FlatButtonUI

        protected FlatButtonUI​(boolean shared)
        Since:
        2