- java.lang.Object
 -  
      
- javax.swing.text.StyleContext.SmallAttributeSet
 
 
-  
       
- 实现的所有接口
 -  
         
AttributeSet 
- Enclosing class:
 - StyleContext
 
public class StyleContext.SmallAttributeSet extends Object implements AttributeSet
此类在数组中包含少量属性。 存储格式是键,值,键,值等。集合的大小是数组的长度除以2。 默认情况下,这是在紧凑的可共享表单中保存时用于存储属性的类。 
-  
        
       
-  
             
嵌套类汇总
-  
               
Nested classes/interfaces declared in interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute 
 -  
               
 
-  
             
字段汇总
-  
               
Fields declared in interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute 
 -  
               
 
-  
             
构造方法摘要
构造方法 构造器 描述 SmallAttributeSet(Object[] attributes)构造一个SmallAttributeSet。SmallAttributeSet(AttributeSet attrs)构造一个SmallAttributeSet。 
-  
             
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 Objectclone()克隆一组属性。booleancontainsAttribute(Object name, Object value)检查是否定义了给定的属性名称/值。booleancontainsAttributes(AttributeSet attrs)检查属性集是否包含所有给定属性。AttributeSetcopyAttributes()复制一组属性。booleanequals(Object obj)将此对象与指定的对象进行比较。ObjectgetAttribute(Object key)获取属性的值。intgetAttributeCount()获取已定义的属性数。Enumeration<?>getAttributeNames()获取所有属性的名称。AttributeSetgetResolveParent()如果未覆盖,则解析父级默认为父元素。inthashCode()返回此属性集的哈希码。booleanisDefined(Object key)检查是否定义了给定属性。booleanisEqual(AttributeSet attr)检查两个属性集是否相等。StringtoString()返回显示键/值对的字符串。 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
SmallAttributeSet
public SmallAttributeSet(Object[] attributes)
构造一个SmallAttributeSet。- 参数
 -  
              
attributes- 属性 
 
-  
SmallAttributeSet
public SmallAttributeSet(AttributeSet attrs)
构造一个SmallAttributeSet。- 参数
 -  
              
attrs- 属性 
 
 -  
 
-  
             
方法详细信息
-  
hashCode
public int hashCode()
返回此属性集的哈希码。- 重写:
 -  
              
hashCode类Object - 结果
 - 这组属性的哈希码值。
 - 另请参见:
 -  
              
Object.equals(java.lang.Object),System.identityHashCode(java.lang.Object) 
 
-  
equals
public boolean equals(Object obj)
将此对象与指定的对象进行比较。 如果对象是一组等效的属性,则结果为true。- 重写:
 -  
              
equals类Object - 参数
 -  
              
obj- 要与之比较的对象。 - 结果
 -  
              
true如果对象相等; 否则为false。 - 另请参见:
 -  
              
Object.hashCode(),HashMap 
 
-  
clone
public Object clone()
克隆一组属性。 由于集合是不可变的,因此克隆基本上是相同的集合。 
-  
getAttributeCount
public int getAttributeCount()
获取已定义的属性数。- Specified by:
 -  
              
getAttributeCount接口AttributeSet - 结果
 - 属性的数量
 - 另请参见:
 -  
              
AttributeSet.getAttributeCount() 
 
-  
isDefined
public boolean isDefined(Object key)
检查是否定义了给定属性。- Specified by:
 -  
              
isDefined接口AttributeSet - 参数
 -  
              
key- 属性键 - 结果
 - 如果定义了属性,则为true
 - 另请参见:
 -  
              
AttributeSet.isDefined(java.lang.Object) 
 
-  
isEqual
public boolean isEqual(AttributeSet attr)
检查两个属性集是否相等。- Specified by:
 -  
              
isEqual接口AttributeSet - 参数
 -  
              
attr- 要检查的属性集 - 结果
 - 如果相同则为真
 - 另请参见:
 -  
              
AttributeSet.isEqual(javax.swing.text.AttributeSet) 
 
-  
copyAttributes
public AttributeSet copyAttributes()
复制一组属性。- Specified by:
 -  
              
copyAttributes接口AttributeSet - 结果
 - 副本
 - 另请参见:
 -  
              
AttributeSet.copyAttributes() 
 
-  
getAttribute
public Object getAttribute(Object key)
获取属性的值。- Specified by:
 -  
              
getAttribute接口AttributeSet - 参数
 -  
              
key- 属性名称 - 结果
 - 属性值
 - 另请参见:
 -  
              
AttributeSet.getAttribute(java.lang.Object) 
 
-  
getAttributeNames
public Enumeration<?> getAttributeNames()
获取所有属性的名称。- Specified by:
 -  
              
getAttributeNames接口AttributeSet - 结果
 - 属性名称
 - 另请参见:
 -  
              
AttributeSet.getAttributeNames() 
 
-  
containsAttribute
public boolean containsAttribute(Object name, Object value)
检查是否定义了给定的属性名称/值。- Specified by:
 -  
              
containsAttribute接口AttributeSet - 参数
 -  
              
name- 属性名称 -  
              
value- 属性值 - 结果
 - 如果定义了名称/值,则为true
 - 另请参见:
 -  
              
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object) 
 
-  
containsAttributes
public boolean containsAttributes(AttributeSet attrs)
检查属性集是否包含所有给定属性。- Specified by:
 -  
              
containsAttributes接口AttributeSet - 参数
 -  
              
attrs- 要检查的属性 - 结果
 - 如果元素包含所有属性,则为true
 - 另请参见:
 -  
              
AttributeSet.containsAttributes(javax.swing.text.AttributeSet) 
 
-  
getResolveParent
public AttributeSet getResolveParent()
如果未覆盖,则解析父级默认为父元素。- Specified by:
 -  
              
getResolveParent接口AttributeSet - 结果
 - 来自父级的属性
 - 另请参见:
 -  
              
AttributeSet.getResolveParent() 
 
 -  
 
 -