org.jfree.layouting.input.swing.converter
Class CharacterConverter
java.lang.Object
org.jfree.layouting.input.swing.converter.CharacterConverter
- Converter
public class CharacterConverter
extends java.lang.Object
This class handles convertions of character style attributes to css style attributes.
LINETHROUGH_TEXT_DECORATION
public static final String LINETHROUGH_TEXT_DECORATION
CSS text decoration value.
NONE_TEXT_DECORATION
public static final String NONE_TEXT_DECORATION
CSS text decoration value.
RTF_CAPS
public static final String RTF_CAPS
RTF_DELETED
public static final String RTF_DELETED
RTF_Hidden
public static final String RTF_Hidden
RTF_OUTLINE
public static final String RTF_OUTLINE
RTF_SHADOW
public static final String RTF_SHADOW
RTF_SMALLCAPS
public static final String RTF_SMALLCAPS
RTF_STRIKETRHOUGH
public static final String RTF_STRIKETRHOUGH
TEXT_DECORATION_KEY
public static final String TEXT_DECORATION_KEY
CSS text decoration key.
UNDERLINE_TEXT_DECORATION
public static final String UNDERLINE_TEXT_DECORATION
CSS text decoration value.
CharacterConverter
public CharacterConverter()
convertToCSS
public ConverterAttributeSet convertToCSS(Object key,
Object value,
ConverterAttributeSet cssAttr,
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.
- 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.
- The conversion result or null if no converstion has been done.