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 FontReturns the default Fontstatic StringReturns the default Font namestatic intReturns the default Font sizestatic FontReturns a new Font with the specified attributesstatic FontgetFontWithName(String name, Font inFont) Returns the specified Font with its name changed to the specified name.static FontgetFontWithSize(int size, Font inFont) Returns the specified Font with its size changed to the specified size.static FontgetFontWithStyle(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
-