1 7 package javax.swing.text; 8 9 import java.util.Enumeration ; 10 11 30 public interface AttributeSet { 31 32 42 public interface FontAttribute { 43 } 44 45 50 public interface ColorAttribute { 51 } 52 53 60 public interface CharacterAttribute { 61 } 62 63 68 public interface ParagraphAttribute { 69 } 70 71 76 public int getAttributeCount(); 77 78 86 public boolean isDefined(Object attrName); 87 88 94 public boolean isEqual(AttributeSet attr); 95 96 102 public AttributeSet copyAttributes(); 103 104 114 public Object getAttribute(Object key); 115 116 124 public Enumeration <?> getAttributeNames(); 125 126 133 public boolean containsAttribute(Object name, Object value); 134 135 141 public boolean containsAttributes(AttributeSet attributes); 142 143 148 public AttributeSet getResolveParent(); 149 150 154 public static final Object NameAttribute = StyleConstants.NameAttribute; 155 156 160 public static final Object ResolveAttribute = StyleConstants.ResolveAttribute; 161 162 } 163 | Popular Tags |