Class TitlebarUI

    • Field Detail

      • FONT_COLOR_ACTIVE

        public static final java.lang.String FONT_COLOR_ACTIVE
        See Also:
        Constant Field Values
      • BACKGROUND_COLOR

        public static final java.lang.String BACKGROUND_COLOR
        See Also:
        Constant Field Values
      • BACKGROUND_COLOR_ACTIVE

        public static final java.lang.String BACKGROUND_COLOR_ACTIVE
        See Also:
        Constant Field Values
      • font

        protected java.awt.Font font
      • activeFont

        protected java.awt.Color activeFont
      • inactiveFont

        protected java.awt.Color inactiveFont
      • activeBackground

        protected java.awt.Color activeBackground
      • inactiveBackground

        protected java.awt.Color inactiveBackground
      • activeBorder

        protected javax.swing.border.Border activeBorder
      • inactiveBorder

        protected javax.swing.border.Border inactiveBorder
      • defaultIcons

        protected IconMap defaultIcons
      • painter

        protected Painter painter
      • insets

        protected java.awt.Insets insets
      • buttonMargin

        protected int buttonMargin
      • iconInsets

        protected java.awt.Insets iconInsets
      • antialiasing

        protected java.lang.Object antialiasing
      • defaultHeight

        protected int defaultHeight
    • Constructor Detail

      • TitlebarUI

        public TitlebarUI()
    • Method Detail

      • installUI

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.ComponentUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.ComponentUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent jc)
        Overrides:
        paint in class javax.swing.plaf.ComponentUI
      • paintBackground

        protected void paintBackground​(java.awt.Graphics g,
                                       Titlebar titlebar)
      • getPaintRect

        protected java.awt.Rectangle getPaintRect​(Titlebar titlebar)
      • paintTitle

        protected void paintTitle​(java.awt.Graphics g,
                                  Titlebar titlebar)
      • getTextLocation

        protected int getTextLocation​(java.awt.Rectangle iconRect)
      • paintIcon

        protected void paintIcon​(java.awt.Graphics g,
                                 Titlebar titlebar)
      • getIconRect

        protected java.awt.Rectangle getIconRect​(Titlebar titlebar)
      • getLeftIconMargin

        protected int getLeftIconMargin()
      • getRightIconMargin

        protected int getRightIconMargin()
      • paintBorder

        protected void paintBorder​(java.awt.Graphics g,
                                   Titlebar titlebar)
      • layoutComponents

        public void layoutComponents​(Titlebar titlebar)
      • configureAction

        public void configureAction​(javax.swing.Action action)
      • getFontColor

        protected java.awt.Color getFontColor​(boolean active)
      • getBackgroundColor

        protected java.awt.Color getBackgroundColor​(boolean active)
      • getBorder

        protected javax.swing.border.Border getBorder​(Titlebar titlebar)
      • getDefaultHeight

        public int getDefaultHeight()
      • setDefaultHeight

        public void setDefaultHeight​(int defaultHeight)
      • getPreferredSize

        public java.awt.Dimension getPreferredSize()
      • getActiveBackground

        public java.awt.Color getActiveBackground()
        Returns:
        Returns the activeBackground.
      • setActiveBackground

        public void setActiveBackground​(java.awt.Color activeBackground)
        Parameters:
        activeBackground - The activeBackground to set.
      • getActiveFont

        public java.awt.Color getActiveFont()
        Returns:
        Returns the activeFont.
      • setActiveFont

        public void setActiveFont​(java.awt.Color activeFont)
        Parameters:
        activeFont - The activeFont to set.
      • getInactiveBackground

        public java.awt.Color getInactiveBackground()
        Returns:
        Returns the inactiveBackground.
      • setInactiveBackground

        public void setInactiveBackground​(java.awt.Color inactiveBackground)
        Parameters:
        inactiveBackground - The inactiveBackground to set.
      • getInactiveFont

        public java.awt.Color getInactiveFont()
        Returns:
        Returns the inactiveFont.
      • setInactiveFont

        public void setInactiveFont​(java.awt.Color inactiveFont)
        Parameters:
        inactiveFont - The inactiveFont to set.
      • getFont

        public java.awt.Font getFont()
        Returns:
        Returns the font.
      • setFont

        public void setFont​(java.awt.Font font)
        Parameters:
        font - The font to set.
      • getDefaultIcons

        public IconMap getDefaultIcons()
      • setDefaultIcons

        public void setDefaultIcons​(IconMap defaultIcons)
      • setDefaultIcons

        public void setDefaultIcons​(java.lang.String iconMapName)
      • getIcons

        public IconResource getIcons​(javax.swing.Action action)
      • getIcons

        public IconResource getIcons​(java.lang.String key)
      • getAction

        public javax.swing.Action getAction​(java.lang.String actionKey)
      • getInactiveBorder

        public javax.swing.border.Border getInactiveBorder()
        Returns:
        Returns the inactiveBorder.
      • setInactiveBorder

        public void setInactiveBorder​(javax.swing.border.Border inactiveBorder)
        Parameters:
        inactiveBorder - The inactiveBorder to set.
      • getActiveBorder

        public javax.swing.border.Border getActiveBorder()
        Returns:
        Returns the activeBorder.
      • setActiveBorder

        public void setActiveBorder​(javax.swing.border.Border activeBorder)
        Parameters:
        activeBorder - The activeBorder to set.
      • getIconInsets

        public java.awt.Insets getIconInsets()
        Returns:
        Returns the iconInsets.
      • setIconInsets

        public void setIconInsets​(java.awt.Insets iconInsets)
        Parameters:
        iconInsets - The iconInsets to set.
      • getButtonMargin

        public int getButtonMargin()
        Returns:
        Returns the buttonMargin.
      • setButtonMargin

        public void setButtonMargin​(int buttonMargin)
        Parameters:
        buttonMargin - The buttonMargin to set.
      • getPainter

        public Painter getPainter()
        Returns:
        Returns the painterResource.
      • setPainter

        public void setPainter​(Painter painter)
        Parameters:
        painter - The painter to set.
      • getInsets

        public java.awt.Insets getInsets()
        Returns:
        Returns the insets.
      • setInsets

        public void setInsets​(java.awt.Insets insets)
        Parameters:
        insets - The insets to set.
      • isAntialiasing

        public boolean isAntialiasing()
        Returns:
        Returns the antialiasing.
      • setAntialiasing

        public void setAntialiasing​(boolean antialias)
        Parameters:
        antialias - The antialias to set.
      • getPreferredButtonUI

        public java.lang.String getPreferredButtonUI()