DefaultStyledDocument
MutableAttributeSet
SimpleAttributeSet
分别是什么用途呢?他们的方法有哪些常用的呢?

解决方案 »

  1.   

    这个API里面都有很详细的解释啊!
      LZ看下API不就全知道了
      

  2.   

    还是自己去看中文api吧--------------copy------------------
    DefaultStyledDocument 
    能够以类似富文本格式 (Rich Text Format) 的方式对其字符和段落样式进行标记的文档。此文档的元素结构表示样式在运行时的相互引用。这些样式运行被映射到段落元素结构(也有可能以其他结构形式驻留)。样式运行在段落边界处中断,原因是段落边界被指派了逻辑样式。 
    MutableAttributeSet 
    public interface MutableAttributeSet extends AttributeSet独特属性的可变集合的通用接口。 实现可能需要提供以下形式的构造方法:public XXXAttributeSet(ConstAttributeSet source); SimpleAttributeSet public class SimpleAttributeSetextends Objectimplements MutableAttributeSet, Serializable, Cloneable使用哈希表的 MutableAttributeSet 的直接实现。
      

  3.   

    我查了API,但是不是很明白它说的是什么意思.