sferyx.administration.renderers
Class AttributeSetTranslator

java.lang.Object
  extended by sferyx.administration.renderers.AttributeSetTranslator

public class AttributeSetTranslator
extends java.lang.Object

Utility class for attribute set conversion


Constructor Summary
AttributeSetTranslator()
          Creates a new instance of AttributeSetTranslator
 
Method Summary
 javax.swing.text.AttributeSet convertToHTML(javax.swing.text.AttributeSet from, javax.swing.text.MutableAttributeSet to)
           
static javax.swing.text.MutableAttributeSet convertToHTML32_orig(javax.swing.text.AttributeSet from, javax.swing.text.MutableAttributeSet to)
          Create an older style of HTML attributes.
 javax.swing.text.MutableAttributeSet convertToHTML32(javax.swing.text.AttributeSet from, javax.swing.text.MutableAttributeSet to)
           
 javax.swing.text.MutableAttributeSet convertToHTML32Font(javax.swing.text.AttributeSet from, javax.swing.text.MutableAttributeSet to)
           
 javax.swing.text.MutableAttributeSet convertToHTML40(javax.swing.text.AttributeSet from, javax.swing.text.MutableAttributeSet to)
          Copies the given AttributeSet to a new set, converting any CSS attributes found to arguments of an HTML style attribute.
static boolean isFontAttributesAlreadyDefined(javax.swing.text.AttributeSet from, java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSetTranslator

public AttributeSetTranslator()
Creates a new instance of AttributeSetTranslator

Method Detail

convertToHTML

public javax.swing.text.AttributeSet convertToHTML(javax.swing.text.AttributeSet from,
                                                   javax.swing.text.MutableAttributeSet to)

isFontAttributesAlreadyDefined

public static boolean isFontAttributesAlreadyDefined(javax.swing.text.AttributeSet from,
                                                     java.lang.Object key)

convertToHTML32

public javax.swing.text.MutableAttributeSet convertToHTML32(javax.swing.text.AttributeSet from,
                                                            javax.swing.text.MutableAttributeSet to)

convertToHTML32Font

public javax.swing.text.MutableAttributeSet convertToHTML32Font(javax.swing.text.AttributeSet from,
                                                                javax.swing.text.MutableAttributeSet to)

convertToHTML32_orig

public static javax.swing.text.MutableAttributeSet convertToHTML32_orig(javax.swing.text.AttributeSet from,
                                                                        javax.swing.text.MutableAttributeSet to)
Create an older style of HTML attributes. This will convert character level attributes that have a StyleConstants mapping over to an HTML tag/attribute. Other CSS attributes will be placed in an HTML style attribute.


convertToHTML40

public javax.swing.text.MutableAttributeSet convertToHTML40(javax.swing.text.AttributeSet from,
                                                            javax.swing.text.MutableAttributeSet to)
Copies the given AttributeSet to a new set, converting any CSS attributes found to arguments of an HTML style attribute.