Class FlatToggleButton

    • Constructor Detail

      • FlatToggleButton

        public FlatToggleButton()
    • Method Detail

      • setButtonType

        public void setButtonType​(FlatButton.ButtonType buttonType)
        Specifies type of a button.
      • isSquareSize

        public boolean isSquareSize()
        Returns whether the button preferred size will be made square (quadratically).
      • setSquareSize

        public void setSquareSize​(boolean squareSize)
        Specifies whether the button preferred size will be made square (quadratically).
      • getMinimumWidth

        public int getMinimumWidth()
        Returns minimum width of a component.
      • setMinimumWidth

        public void setMinimumWidth​(int minimumWidth)
        Specifies minimum width of a component.
      • getMinimumHeight

        public int getMinimumHeight()
        Returns minimum height of a component.
      • setMinimumHeight

        public void setMinimumHeight​(int minimumHeight)
        Specifies minimum height of a component.
      • getOutline

        public Object getOutline()
        Returns the outline color of the component border.
      • setOutline

        public void setOutline​(Object outline)
        Specifies the outline color of the component border.

        Allowed Values are:

        • null
        • string "error"
        • string "warning"
        • any color (type Color)
        • an array of two colors (type Color[2]) where the first color is for focused state and the second for unfocused state
      • getTabUnderlinePlacement

        public int getTabUnderlinePlacement()
        Returns placement of underline if toggle button type is FlatButton.ButtonType.tab. If underline placement is not specified, returns SwingConstants.BOTTOM as the default value.
        Since:
        2.3
      • getTabUnderlineHeight

        public int getTabUnderlineHeight()
        Returns thickness of underline if toggle button type is FlatButton.ButtonType.tab.
      • setTabUnderlineHeight

        public void setTabUnderlineHeight​(int tabUnderlineHeight)
        Specifies thickness of underline if toggle button type is FlatButton.ButtonType.tab.
      • setTabUnderlineColor

        public void setTabUnderlineColor​(Color tabUnderlineColor)
        Specifies color of underline if toggle button type is FlatButton.ButtonType.tab.
      • getTabSelectedBackground

        public Color getTabSelectedBackground()
        Returns background color if selected and toggle button type is FlatButton.ButtonType.tab.
      • setTabSelectedBackground

        public void setTabSelectedBackground​(Color tabSelectedBackground)
        Specifies background color if selected and toggle button type is FlatButton.ButtonType.tab.