org.jfree.layouting.input.swing.converter
Class CharacterConverter

java.lang.Object
  extended by org.jfree.layouting.input.swing.converter.CharacterConverter
All Implemented Interfaces:
Converter

public class CharacterConverter
extends java.lang.Object
implements Converter

This class handles convertions of character style attributes to css style attributes.


Field Summary
static java.lang.String LINETHROUGH_TEXT_DECORATION
          CSS text decoration value.
static java.lang.String NONE_TEXT_DECORATION
          CSS text decoration value.
static java.lang.String RTF_CAPS
           
static java.lang.String RTF_DELETED
           
static java.lang.String RTF_Hidden
           
static java.lang.String RTF_OUTLINE
           
static java.lang.String RTF_SHADOW
           
static java.lang.String RTF_SMALLCAPS
           
static java.lang.String RTF_STRIKETRHOUGH
           
static java.lang.String TEXT_DECORATION_KEY
          CSS text decoration key.
static java.lang.String UNDERLINE_TEXT_DECORATION
          CSS text decoration value.
 
Constructor Summary
CharacterConverter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_DECORATION_KEY

public static final java.lang.String TEXT_DECORATION_KEY
CSS text decoration key.

See Also:
Constant Field Values

NONE_TEXT_DECORATION

public static final java.lang.String NONE_TEXT_DECORATION
CSS text decoration value.

See Also:
Constant Field Values

UNDERLINE_TEXT_DECORATION

public static final java.lang.String UNDERLINE_TEXT_DECORATION
CSS text decoration value.

See Also:
Constant Field Values

LINETHROUGH_TEXT_DECORATION

public static final java.lang.String LINETHROUGH_TEXT_DECORATION
CSS text decoration value.

See Also:
Constant Field Values

RTF_CAPS

public static final java.lang.String RTF_CAPS
See Also:
Constant Field Values

RTF_SMALLCAPS

public static final java.lang.String RTF_SMALLCAPS
See Also:
Constant Field Values

RTF_OUTLINE

public static final java.lang.String RTF_OUTLINE
See Also:
Constant Field Values

RTF_SHADOW

public static final java.lang.String RTF_SHADOW
See Also:
Constant Field Values

RTF_Hidden

public static final java.lang.String RTF_Hidden
See Also:
Constant Field Values

RTF_STRIKETRHOUGH

public static final java.lang.String RTF_STRIKETRHOUGH
See Also:
Constant Field Values

RTF_DELETED

public static final java.lang.String RTF_DELETED
See Also:
Constant Field Values
Constructor Detail

CharacterConverter

public CharacterConverter()
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:
convertToCSS in interface Converter
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.