Package ch.autumo.commons.ui
Class UI
java.lang.Object
ch.autumo.commons.ui.UI
Specific Swing UI customization & tools.
Version 1.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color
Color: Background.static final Color
Color: Background bluestatic final Color
Color: Background blue dark.static final Color
Color: Background bright.static final Color
Color: Background dark.static final Color
Color: Background blue disabled field.static final Color
Color: Background blue field.static final Color
Color: Background blue light.static final Color
Color: Background linux.static final Color
Color: Background toolbar.static final Color
Color: Background toolbar 2.static final Color
Color: Background console.static final Color
Color: Background standard (bright).static final Color
Color: autumo 0.static final Color
Color: autumo 1.static final Color
Color: autumo 2.static final Color
Color: autumo 3.static final Color
Color: autumo 4.static final Color
Color: Foreground.static final Color
Color: Foreground field.static final Color
Color: Frame active background.static final Color
Color: Frame inactive tbackground.static final Color
Color: Frame title active background.static final Color
Color: Frame title inactive background. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
customizeLabelFonts
(Component component, Font font, Color foregroundColor) Customize label fonts.static void
Customize colors, etc.static String
hexCSSColor
(Color color) Get a CSS HEX representation of the color given.static boolean
isFontAvailable
(String fontName) Check is font is available on system.static void
setUIFont
(FontUIResource font) Set UI font.
-
Field Details
-
FRAME_ACTIVE
Color: Frame active background. -
FRAME_INACTIVE
Color: Frame inactive tbackground. -
FRAME_TITLE_ACTIVE
Color: Frame title active background. -
FRAME_TITLE_INACTIVE
Color: Frame title inactive background. -
FG_COLOR
Color: Foreground. -
FG_COLOR_FIELD
Color: Foreground field. -
BG_COLOR
Color: Background. -
BG_COLOR_DARK
Color: Background dark. -
BG_COLOR_TB
Color: Background toolbar. -
BG_COLOR_TB2
Color: Background toolbar 2. -
BG_COLOR_BRIGHT
Color: Background bright. -
COLOR_BLUE_AT0
Color: autumo 0. -
COLOR_BLUE_AT1
Color: autumo 1. -
COLOR_BLUE_AT2
Color: autumo 2. -
COLOR_BLUE_AT3
Color: autumo 3. -
COLOR_BLUE_AT4
Color: autumo 4. -
BG_COLOR_LIGHT
Color: Background blue light. -
BG_COLOR_BLUE
Color: Background blue -
BG_COLOR_BLUE_DARK
Color: Background blue dark. -
BG_COLOR_FIELD
Color: Background blue field. -
BG_COLOR_DISABLED_FIELD
Color: Background blue disabled field. -
BG_CONSOLE_COLOR
Color: Background console. -
BG_COLOR_LINUX
Color: Background linux. -
BG_STANDARD
Color: Background standard (bright).
-
-
Constructor Details
-
UI
public UI()
-
-
Method Details
-
hexCSSColor
Get a CSS HEX representation of the color given.- Parameters:
color
- color- Returns:
- CSS HEX string representation
-
customizeLabelFonts
Customize label fonts.- Parameters:
component
- componentfont
- fontforegroundColor
- foreground color
-
isFontAvailable
Check is font is available on system.- Parameters:
fontName
- font name- Returns:
- true if so
-
setUIFont
Set UI font.- Parameters:
font
- font to set
-
customizeUI
public static void customizeUI()Customize colors, etc.
-