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.
  • Field Details

    • 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
    • helpButtonIcon

      private Icon helpButtonIcon
    • defaultMargin

      private Insets defaultMargin
    • shared

      private final boolean shared
    • helpButtonIconShared

      private boolean helpButtonIconShared
    • defaults_initialized

      private boolean defaults_initialized
    • oldStyleValues

      private Map<String,Object> oldStyleValues
    • borderShared

      private AtomicBoolean borderShared
    • TYPE_OTHER

      static final int TYPE_OTHER
      See Also:
    • TYPE_SQUARE

      static final int TYPE_SQUARE
      See Also:
    • TYPE_ROUND_RECT

      static final int TYPE_ROUND_RECT
      See Also:
    • viewR

      private static Rectangle viewR
    • textR

      private static Rectangle textR
    • iconR

      private static Rectangle iconR
  • Constructor Details

    • FlatButtonUI

      protected FlatButtonUI(boolean shared)
      Since:
      2
  • Method Details