Class FontHelper
java.lang.Object
xal.extension.widgets.swing.wheelswitch.util.FontHelper
Helper class that provides simple access to Font UI resources
- Version:
- $id$
- Author:
- Jernej Kamenik
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Font
Returns the default Fontstatic String
Returns the default Font namestatic int
Returns the default Font sizestatic Font
Returns a new Font with the specified attributesstatic Font
getFontWithName
(String name, Font inFont) Returns the specified Font with its name changed to the specified name.static Font
getFontWithSize
(int size, Font inFont) Returns the specified Font with its size changed to the specified size.static Font
getFontWithStyle
(int style, Font inFont) Returns the specified Font with its style changed to the specified style.
-
Method Details
-
getDefaultFontName
Returns the default Font name- Returns:
- String name
- See Also:
-
getDefaultFontSize
public static int getDefaultFontSize()Returns the default Font size- Returns:
- int size
- See Also:
-
getDefaultFont
Returns the default Font- Returns:
- Font
- See Also:
-
getFontWithStyle
Returns the specified Font with its style changed to the specified style.- Parameters:
style
-inFont
-- Returns:
- Font
-
getFontWithName
Returns the specified Font with its name changed to the specified name.- Parameters:
name
-inFont
-- Returns:
- Font
-
getFontWithSize
Returns the specified Font with its size changed to the specified size.- Parameters:
size
-inFont
-- Returns:
- Font
-
getFont
Returns a new Font with the specified attributes- Parameters:
name
-style
-size
-- Returns:
- Font
-