Class FontConverter
- java.lang.Object
-
- org.jfree.layouting.input.swing.converter.FontConverter
-
-
Constructor Summary
Constructors Constructor Description FontConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConverterAttributeSetconvertToCSS(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 ConverterAttributeSethandleFontConstants(javax.swing.text.StyleConstants.FontConstants fontConstant, java.lang.Object value)Handles the convertions of(StyleConstants.FontConstantskey type.
-
-
-
Method Detail
-
convertToCSS
public 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. A conversion can result in more than one key and value.- Specified by:
convertToCSSin interfaceConverter- Parameters:
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.- Returns:
- The conversion result or null if no converstion has been done.
-
handleFontConstants
protected ConverterAttributeSet handleFontConstants(javax.swing.text.StyleConstants.FontConstants fontConstant, java.lang.Object value)
Handles the convertions of(StyleConstants.FontConstantskey type.- Parameters:
fontConstant- The style key.value- The style value.- Returns:
- The conversion result or null if no converstion has been done.
-
-