Class UI

java.lang.Object
ch.autumo.commons.ui.UI

public class UI extends Object
Specific Swing UI customization & tools. Version 1.1
  • Field Details

    • FRAME_ACTIVE

      public static final Color FRAME_ACTIVE
      Color: Frame active background.
    • FRAME_INACTIVE

      public static final Color FRAME_INACTIVE
      Color: Frame inactive tbackground.
    • FRAME_TITLE_ACTIVE

      public static final Color FRAME_TITLE_ACTIVE
      Color: Frame title active background.
    • FRAME_TITLE_INACTIVE

      public static final Color FRAME_TITLE_INACTIVE
      Color: Frame title inactive background.
    • FG_COLOR

      public static final Color FG_COLOR
      Color: Foreground.
    • FG_COLOR_FIELD

      public static final Color FG_COLOR_FIELD
      Color: Foreground field.
    • BG_COLOR

      public static final Color BG_COLOR
      Color: Background.
    • BG_COLOR_DARK

      public static final Color BG_COLOR_DARK
      Color: Background dark.
    • BG_COLOR_TB

      public static final Color BG_COLOR_TB
      Color: Background toolbar.
    • BG_COLOR_TB2

      public static final Color BG_COLOR_TB2
      Color: Background toolbar 2.
    • BG_COLOR_BRIGHT

      public static final Color BG_COLOR_BRIGHT
      Color: Background bright.
    • COLOR_BLUE_AT0

      public static final Color COLOR_BLUE_AT0
      Color: autumo 0.
    • COLOR_BLUE_AT1

      public static final Color COLOR_BLUE_AT1
      Color: autumo 1.
    • COLOR_BLUE_AT2

      public static final Color COLOR_BLUE_AT2
      Color: autumo 2.
    • COLOR_BLUE_AT3

      public static final Color COLOR_BLUE_AT3
      Color: autumo 3.
    • COLOR_BLUE_AT4

      public static final Color COLOR_BLUE_AT4
      Color: autumo 4.
    • BG_COLOR_LIGHT

      public static final Color BG_COLOR_LIGHT
      Color: Background blue light.
    • BG_COLOR_BLUE

      public static final Color BG_COLOR_BLUE
      Color: Background blue
    • BG_COLOR_BLUE_DARK

      public static final Color BG_COLOR_BLUE_DARK
      Color: Background blue dark.
    • BG_COLOR_FIELD

      public static final Color BG_COLOR_FIELD
      Color: Background blue field.
    • BG_COLOR_DISABLED_FIELD

      public static final Color BG_COLOR_DISABLED_FIELD
      Color: Background blue disabled field.
    • BG_CONSOLE_COLOR

      public static final Color BG_CONSOLE_COLOR
      Color: Background console.
    • BG_COLOR_LINUX

      public static final Color BG_COLOR_LINUX
      Color: Background linux.
    • BG_STANDARD

      public static final Color BG_STANDARD
      Color: Background standard (bright).
  • Constructor Details

    • UI

      public UI()
  • Method Details

    • hexCSSColor

      public static String hexCSSColor(Color color)
      Get a CSS HEX representation of the color given.
      Parameters:
      color - color
      Returns:
      CSS HEX string representation
    • customizeLabelFonts

      public static void customizeLabelFonts(Component component, Font font, Color foregroundColor)
      Customize label fonts.
      Parameters:
      component - component
      font - font
      foregroundColor - foreground color
    • isFontAvailable

      public static boolean isFontAvailable(String fontName)
      Check is font is available on system.
      Parameters:
      fontName - font name
      Returns:
      true if so
    • setUIFont

      public static void setUIFont(FontUIResource font)
      Set UI font.
      Parameters:
      font - font to set
    • customizeUI

      public static void customizeUI()
      Customize colors, etc.