Constructor | Description |
---|---|
FontConverter() |
Modifier and Type | Method | Description |
---|---|---|
ConverterAttributeSet |
convertToCSS(java.lang.Object key,
java.lang.Object value,
ConverterAttributeSet cssAttr,
javax.swing.text.Element context) |
Converts a style key and a style value to a CSS compatible style key and style value.
|
protected ConverterAttributeSet |
handleFontConstants(javax.swing.text.StyleConstants.FontConstants fontConstant,
java.lang.Object value) |
Handles the convertions of
(StyleConstants.FontConstants key type. |
public ConverterAttributeSet convertToCSS(java.lang.Object key, java.lang.Object value, ConverterAttributeSet cssAttr, javax.swing.text.Element context)
convertToCSS
in interface Converter
key
- The style key to convert.value
- The style value to convert.cssAttr
- The current converted CSS attributes for the current element.context
- The current Element.protected ConverterAttributeSet handleFontConstants(javax.swing.text.StyleConstants.FontConstants fontConstant, java.lang.Object value)
(StyleConstants.FontConstants
key type.fontConstant
- The style key.value
- The style value.