2362N/A * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * An implementation of <code>AttributeSet</code> that can multiplex 0N/A * across a set of <code>AttributeSet</code>s. 0N/A * Creates a <code>MuxingAttributeSet</code> with the passed in 0N/A * Creates an empty <code>MuxingAttributeSet</code>. This is intended for 0N/A * use by subclasses only, and it is also intended that subclasses will 0N/A * set the constituent <code>AttributeSet</code>s before invoking any 0N/A * of the <code>AttributeSet</code> methods. 0N/A * Directly sets the <code>AttributeSet</code>s that comprise this 0N/A * <code>MuxingAttributeSet</code>. 0N/A * Returns the <code>AttributeSet</code>s multiplexing too. When the 0N/A * <code>AttributeSet</code>s need to be referenced, this should be called. 0N/A * Inserts <code>as</code> at <code>index</code>. This assumes 0N/A * the value of <code>index</code> is between 0 and attrs.length, 0N/A * Removes the AttributeSet at <code>index</code>. This assumes 0N/A * the value of <code>index</code> is greater than or equal to 0, 0N/A * and less than attrs.length. 0N/A // --- AttributeSet methods ---------------------------- 0N/A * Gets the number of attributes that are defined. 0N/A * @return the number of attributes 0N/A * @see AttributeSet#getAttributeCount 0N/A * Checks whether a given attribute is defined. 0N/A * This will convert the key over to CSS if the 0N/A * key is a StyleConstants key that has a CSS 0N/A * @param key the attribute key 0N/A * @return true if the attribute is defined 0N/A * @see AttributeSet#isDefined 0N/A * Checks whether two attribute sets are equal. 0N/A * @param attr the attribute set to check against 0N/A * @return true if the same 0N/A * @see AttributeSet#isEqual 0N/A * Copies a set of attributes. 0N/A * @see AttributeSet#copyAttributes 0N/A * Gets the value of an attribute. If the requested 0N/A * attribute is a StyleConstants attribute that has 0N/A * a CSS mapping, the request will be converted. 0N/A * @param key the attribute name 0N/A * @return the attribute value 0N/A * @see AttributeSet#getAttribute 0N/A for (
int i =
0; i < n; i++) {
0N/A * Gets the names of all attributes. 0N/A * @return the attribute names 0N/A * @see AttributeSet#getAttributeNames 0N/A * @param name the attribute name 0N/A * @param value the attribute value 0N/A * @see AttributeSet#containsAttribute 0N/A * Checks whether the attribute set contains all of 0N/A * the given attributes. 0N/A * @param attrs the attributes to check 0N/A * @return true if the element contains all the attributes 0N/A * @see AttributeSet#containsAttributes 0N/A * Returns null, subclasses may wish to do something more 0N/A * intelligent with this. 0N/A * The <code>AttributeSet</code>s that make up the resulting 0N/A * <code>AttributeSet</code>. 0N/A * An Enumeration of the Attribute names in a MuxingAttributeSet. 0N/A * This may return the same name more than once. 0N/A /** Index into attrs the current Enumeration came from. */ 0N/A /** Enumeration from attrs. */