org.jfree.layouting.input.swing.converter

Class CharacterConverter

public class CharacterConverter extends Object implements Converter

This class handles convertions of character style attributes to css style attributes.
Field Summary
static StringLINETHROUGH_TEXT_DECORATION
CSS text decoration value.
static StringNONE_TEXT_DECORATION
CSS text decoration value.
static StringRTF_CAPS
static StringRTF_DELETED
static StringRTF_Hidden
static StringRTF_OUTLINE
static StringRTF_SHADOW
static StringRTF_SMALLCAPS
static StringRTF_STRIKETRHOUGH
static StringTEXT_DECORATION_KEY
CSS text decoration key.
static StringUNDERLINE_TEXT_DECORATION
CSS text decoration value.
Constructor Summary
CharacterConverter()
Method Summary
ConverterAttributeSetconvertToCSS(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.

Field Detail

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.

Constructor Detail

CharacterConverter

public CharacterConverter()

Method Detail

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.

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.