Lines Matching refs:attributes

64   private HashMap[] attributes;  field in FormatCharacterIterator
75 attributes = new HashMap[0]; in FormatCharacterIterator()
93 FormatCharacterIterator (String s, int[] ranges, HashMap[] attributes) in FormatCharacterIterator() argument
97 this.attributes = attributes; in FormatCharacterIterator()
107 if (attributes != null && attributes[attributeIndex] != null) in getAllAttributeKeys()
108 return attributes[attributeIndex].keySet(); in getAllAttributeKeys()
115 if (attributes != null && attributes[attributeIndex] != null) in getAttributes()
116 return attributes[attributeIndex]; in getAttributes()
123 if (attributes != null && attributes[attributeIndex] != null) in getAttribute()
124 return attributes[attributeIndex].get (attrib); in getAttribute()
131 if (attributes == null) in getRunLimit()
140 if (currentAttrIndex == attributes.length) in getRunLimit()
142 if (attributes[currentAttrIndex] == null) in getRunLimit()
144 newKeys = attributes[currentAttrIndex].keySet(); in getRunLimit()
161 if (attributes == null) in getRunLimit()
163 if (attributes[attributeIndex] == null) in getRunLimit()
165 for (int i=attributeIndex+1;i<attributes.length;i++) in getRunLimit()
166 if (attributes[i] != null) in getRunLimit()
171 return getRunLimit (attributes[attributeIndex].keySet()); in getRunLimit()
176 if (attributes == null) in getRunStart()
188 if (attributes[currentAttrIndex] == null) in getRunStart()
190 newKeys = attributes[currentAttrIndex].keySet(); in getRunStart()
199 if (attributes == null) in getRunStart()
202 if (attributes[attributeIndex] == null) in getRunStart()
205 if (attributes[i] != null) in getRunStart()
210 return getRunStart (attributes[attributeIndex].keySet()); in getRunStart()
223 return new FormatCharacterIterator (formattedString, ranges, attributes); in clone()
261 if (attributes != null) in last()
262 attributeIndex = attributes.length-1; in last()
274 if (attributes != null) in next()
291 if (attributes != null) in previous()
305 if (attributes != null) in setIndex()
307 for (attributeIndex=0;attributeIndex<attributes.length; in setIndex()
328 protected void mergeAttributes (HashMap[] attributes, int[] ranges) in mergeAttributes() argument
336 if (this.attributes[i] != null) in mergeAttributes()
338 new_attributes.add (this.attributes[i]); in mergeAttributes()
339 if (attributes[j] != null) in mergeAttributes()
340 this.attributes[i].putAll (attributes[j]); in mergeAttributes()
344 new_attributes.add (attributes[j]); in mergeAttributes()
368 new_attributes.add (this.attributes[i]); in mergeAttributes()
376 new_attributes.add (attributes[j]); in mergeAttributes()
381 this.attributes = new HashMap[new_attributes.size()]; in mergeAttributes()
383 System.arraycopy (new_attributes.toArray(), 0, this.attributes, in mergeAttributes()
384 0, this.attributes.length); in mergeAttributes()
417 HashMap[] new_attributes = new HashMap[attributes.length in append()
421 System.arraycopy (attributes, 0, new_attributes, 0, attributes.length); in append()
423 attributes.length, more_attributes.size()); in append()
430 attributes = new_attributes; in append()
446 HashMap[] new_attributes = new HashMap[attributes.length+1]; in append()
449 System.arraycopy (attributes, 0, new_attributes, 0, attributes.length); in append()
452 new_attributes[attributes.length] = local_attributes; in append()
455 attributes = new_attributes; in append()