javax.swing.text.rtf
Interface RTFAttribute

All Known Implementing Classes:
RTFAttributes.AssertiveAttribute, RTFAttributes.BooleanAttribute, RTFAttributes.NumericAttribute

interface RTFAttribute

This interface describes a class which defines a 1-1 mapping between an RTF keyword and a SwingText attribute.


Field Summary
static int D_CHARACTER
           
static int D_DOCUMENT
           
static int D_META
           
static int D_PARAGRAPH
           
static int D_SECTION
           
 
Method Summary
 int domain()
           
 String rtfName()
           
 boolean set(MutableAttributeSet target)
           
 boolean set(MutableAttributeSet target, int parameter)
           
 boolean setDefault(MutableAttributeSet target)
           
 Object swingName()
           
 boolean write(AttributeSet source, RTFGenerator target, boolean force)
           
 boolean writeValue(Object value, RTFGenerator target, boolean force)
           
 

Field Detail

D_CHARACTER

public static final int D_CHARACTER
See Also:
Constant Field Values

D_PARAGRAPH

public static final int D_PARAGRAPH
See Also:
Constant Field Values

D_SECTION

public static final int D_SECTION
See Also:
Constant Field Values

D_DOCUMENT

public static final int D_DOCUMENT
See Also:
Constant Field Values

D_META

public static final int D_META
See Also:
Constant Field Values
Method Detail

domain

public int domain()

swingName

public Object swingName()

rtfName

public String rtfName()

set

public boolean set(MutableAttributeSet target)

set

public boolean set(MutableAttributeSet target,
                   int parameter)

setDefault

public boolean setDefault(MutableAttributeSet target)

write

public boolean write(AttributeSet source,
                     RTFGenerator target,
                     boolean force)
              throws IOException
Throws:
IOException

writeValue

public boolean writeValue(Object value,
                          RTFGenerator target,
                          boolean force)
                   throws IOException
Throws:
IOException