org.apache.fop.render.rtf

Class FOPRtfAttributes

Implemented Interfaces:
java.lang.Cloneable

public class FOPRtfAttributes
extends RtfAttributes

A RtfAttributes subclass that adds some helper set methods.

Method Summary

RtfAttributes
set(String name, Color color)
Set an attribute that has a Color value.
RtfAttributes
setHalfPoints(String name, Length value)
Set an attribute that has a Length value (internal units in half-points)
RtfAttributes
setTwips(String name, int value)
Set an attribute using a value in millipoints (internal units in twips)
RtfAttributes
setTwips(String name, Length value)
Set an attribute that has a Length value (internal units in twips)

Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAttributes

addIntegerValue, clone, getValue, getXslAttributes, isSet, nameIterator, set, set, set, set, set, setXslAttributes, toString, unset

Method Details

set

public RtfAttributes set(String name,
                         Color color)
Set an attribute that has a Color value.
Parameters:
name - name of attribute
color - value of attribute
Returns:
this (which now contains the new entry)

setHalfPoints

public RtfAttributes setHalfPoints(String name,
                                   Length value)
Set an attribute that has a Length value (internal units in half-points)
Parameters:
name - name of attribute
value - value of attribute
Returns:
this (which now contains the new entry)

setTwips

public RtfAttributes setTwips(String name,
                              int value)
Set an attribute using a value in millipoints (internal units in twips)
Parameters:
name - name of attribute
value - value of attribute (in millipoints)
Returns:
this (which now contains the new entry)

setTwips

public RtfAttributes setTwips(String name,
                              Length value)
Set an attribute that has a Length value (internal units in twips)
Parameters:
name - name of attribute
value - value of attribute
Returns:
this (which now contains the new entry)

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.