Lines Matching refs:attributes

47  * This class also provides efficient support for small sets of attributes
91 * Adds a new style into the style hierarchy. Style attributes
103 * attributes need not be resolved in some other style.
109 // add a named style, a class of attributes
211 * Takes a set of attributes and turn it into a foreground color
216 * @param attr the set of attributes
224 * Takes a set of attributes and turn it into a background color
229 * @param attr the set of attributes
320 * Adds a set of attributes to the element.
328 * @param attr the attributes to add
355 * @param old the old set of attributes
376 * Removes a set of attributes for the element.
404 * Removes a set of attributes for the element.
412 * @param attrs the attributes
475 * Create a compact set of attributes that might be shared.
481 * @param a The set of attributes to be represented in the
489 * Create a large set of attributes that should trade off
497 * @param a The set of attributes to be represented in the
558 * Context-specific handling of writing out attributes
566 * Context-specific handling of reading in attributes
574 * Writes a set of attributes to the given object stream
619 * Reads a set of attributes from the given object input
626 * The attributes retrieved from the stream will be placed
751 * The threshold for no longer sharing the set of attributes
757 * This class holds a small number of attributes in an array.
760 * default, this is the class that will be used to store attributes
765 public SmallAttributeSet(Object[] attributes) {
766 this.attributes = attributes;
780 attributes = tbl;
786 Object[] tbl = attributes;
799 Object[] tbl = attributes;
815 Object[] tbl = attributes;
829 * Returns a hashcode for this set of attributes.
830 * @return a hashcode value for this set of attributes.
834 Object[] tbl = attributes;
844 * set of attributes.
859 * Clones a set of attributes. Since the set is immutable, a
862 * @return the set of attributes
871 * Gets the number of attributes that are defined.
873 * @return the number of attributes
877 return attributes.length / 2;
888 Object[] a = attributes;
914 * Copies a set of attributes.
941 * Gets the names of all attributes.
947 return new KeyEnumeration(attributes);
964 * the given attributes.
966 * @param attrs the attributes to check
967 * @return true if the element contains all the attributes
986 * @return the attributes from the parent
995 Object[] attributes;
996 // This is also stored in attributes
1049 initialize(((SmallAttributeSet)a).attributes);
1113 Object[] tbl = ((SmallAttributeSet)attr).attributes;
1152 * Removes the set of matching attributes from the set.
1231 * A collection of attributes, typically used to represent
1257 attributes = getEmptySet();
1280 attributes = getEmptySet();
1289 return "NamedStyle:" + getName() + " " + attributes;
1385 // delegated to the immutable field "attributes"
1388 * Gets the number of attributes that are defined.
1390 * @return the number of attributes >= 0
1394 return attributes.getAttributeCount();
1405 return attributes.isDefined(attrName);
1416 return attributes.isEqual(attr);
1420 * Copies a set of attributes.
1427 a.attributes = attributes.copyAttributes();
1439 return attributes.getAttribute(attrName);
1443 * Gets the names of all attributes.
1449 return attributes.getAttributeNames();
1461 return attributes.containsAttribute(name, value);
1466 * Checks whether the element contains all the attributes.
1468 * @param attrs the attributes to check
1469 * @return true if the element contains all the attributes
1473 return attributes.containsAttributes(attrs);
1477 * Gets attributes from the parent.
1481 * @return the attributes from the parent
1485 return attributes.getResolveParent();
1490 // "attributes".
1501 attributes = context.addAttribute(attributes, name, value);
1506 * Adds a set of attributes to the element.
1508 * @param attr the attributes to add
1513 attributes = context.addAttributes(attributes, attr);
1525 attributes = context.removeAttribute(attributes, name);
1530 * Removes a set of attributes for the element.
1537 attributes = context.removeAttributes(attributes, names);
1542 * Removes a set of attributes for the element.
1544 * @param attrs the attributes
1550 attributes = context.getEmptySet();
1552 attributes = context.removeAttributes(attributes, attrs);
1575 writeAttributeSet(s, attributes);
1582 attributes = SimpleAttributeSet.EMPTY;
1604 private transient AttributeSet attributes;