public class FontStyle extends Object
Modifier and Type | Field and Description |
---|---|
static FontStyle |
BOLD
Font style constant.
|
static FontStyle |
BOLD_ITALIC
Font style constant.
|
static FontStyle |
ITALIC
Font style constant.
|
static FontStyle |
NORMAL
Font style constant.
|
Modifier and Type | Method and Description |
---|---|
static FontStyle |
getFontStyle(ConfigParameters config,
String key,
FontStyle defaultValue)
Returns from the specified configuration parameters the font style
defined by the specified key or the specified default value.
|
String |
toString()
Returns a human readable description for pretty printing.
|
public static final FontStyle NORMAL
public static final FontStyle BOLD
public static final FontStyle ITALIC
public static final FontStyle BOLD_ITALIC
public static FontStyle getFontStyle(ConfigParameters config, String key, FontStyle defaultValue)
config
- Configuration parameters.key
- The key of the font style.defaultValue
- The default value.FactoryException
- if the value of the key-value pair denoted
by key is neither normal, bold,
italic, nor bold italic,
Note, that FactoryException.getClassName()
returns the invalid value.Copyright © 2014. All Rights Reserved.