{
final ConverterAttributeSet attr = new ConverterAttributeSet();
if(paragraphConstant == StyleConstants.FirstLineIndent)
{
final CSSNumericValue cssNumericValue = CSSNumericValue.createValue(CSSNumericType.PT, Double.parseDouble(value.toString()));
attr.addAttribute(TextStyleKeys.TEXT_INDENT.getName(), cssNumericValue);
}
else if(paragraphConstant == StyleConstants.RightIndent)
{
final CSSNumericValue cssNumericValue = CSSNumericValue.createValue(CSSNumericType.PT, Double.parseDouble(value.toString()));
attr.addAttribute(BoxStyleKeys.MARGIN_RIGHT.getName(), cssNumericValue);
}
else if(paragraphConstant == StyleConstants.LeftIndent)
{
final CSSNumericValue cssNumericValue = CSSNumericValue.createValue(CSSNumericType.PT, Double.parseDouble(value.toString()));
attr.addAttribute(BoxStyleKeys.MARGIN_LEFT.getName(), cssNumericValue);
}
else if(paragraphConstant == StyleConstants.LineSpacing)
{
final CSSNumericValue cssNumericValue = CSSNumericValue.createValue(CSSNumericType.EM, Double.parseDouble(value.toString()));
attr.addAttribute(LineStyleKeys.LINE_HEIGHT, cssNumericValue);
}
else if(paragraphConstant == StyleConstants.SpaceAbove)
{
final CSSNumericValue cssNumericValue = CSSNumericValue.createValue(CSSNumericType.PT, Double.parseDouble(value.toString()));
attr.addAttribute(BoxStyleKeys.MARGIN_TOP.getName(), cssNumericValue);
}
else if(paragraphConstant == StyleConstants.SpaceBelow)
{
final CSSNumericValue cssNumericValue = CSSNumericValue.createValue(CSSNumericType.PT, Double.parseDouble(value.toString()));
attr.addAttribute(BoxStyleKeys.MARGIN_BOTTOM.getName(), cssNumericValue);
}
else if(paragraphConstant == StyleConstants.Alignment)
{
Object val = null;