3261N/A * Copyright (c) 2003, 2010, 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 // Known element names 0N/A // Known attribute names 0N/A * Lazily created, used for anything we don't understand. 0N/A * Indicates the depth of how many elements we've encountered but don't 0N/A * understand. This is used when forwarding to beans persistance to know 0N/A * when we hsould stop forwarding. 0N/A * Factory that new styles are added to. 0N/A * Array of state infos for the current style. These are pushed to the 0N/A * style when </style> is received. 0N/A * Current state info. 0N/A * Bindings for the current InputMap 0N/A * ID for the input map. This is cached as 0N/A * the InputMap is created AFTER the inputMapProperty has ended. 0N/A * Object references outside the scope of persistance. 0N/A * Based URL used to resolve paths. 0N/A * Based class used to resolve paths. 0N/A * List of ColorTypes. This is populated in startColorType. 0N/A * defaultsPropertys are placed here. 0N/A * List of SynthStyle.Painters that will be applied to the current style. 0N/A * List of SynthStyle.Painters that will be applied to the current state. 0N/A * Parses a set of styles from <code>inputStream</code>, adding the 0N/A * resulting styles to the passed in DefaultSynthStyleFactory. 0N/A * Resources are resolved either from a URL or from a Class. When calling 0N/A * this method, one of the URL or the Class must be null but not both at 0N/A * @param inputStream XML document containing the styles to read 0N/A * @param factory DefaultSynthStyleFactory that new styles are added to 0N/A * @param urlResourceBase the URL used to resolve any resources, such as Images 0N/A * @param classResourceBase the Class used to resolve any resources, such as Images 0N/A * @param defaultsMap Map that UIDefaults properties are placed in 0N/A "You must supply an InputStream, StyleFactory and Class or URL");
0N/A * Returns the path to a resource. 0N/A * Clears our internal state. 0N/A * Returns true if we are forwarding to persistance. 0N/A * Handles beans persistance. 0N/A // getHandler() is never called before parse() so it is safe 0N/A // to create a URLClassLoader with _resourceBase. 0N/A // getResource(".") is called to ensure we have the directory 0N/A // containing the resources in the case the resource base is a 0N/A * If <code>value</code> is an instance of <code>type</code> it is 0N/A * returned, otherwise a SAXException is thrown. 0N/A * Returns an object created with id=key. If the object is not of 0N/A * type type, this will throw an exception. 0N/A * Registers an object by name. This will throw an exception if an 0N/A * object has already been registered under the given name. 0N/A * Convenience method to return the next int, or throw if there are no 0N/A * Convenience method to return an Insets object. 0N/A // Just RGB, or some portion of it. 0N/A // Single character alpha: #ARRGGBB. 0N/A // Color has alpha and is of the form 0N/A // The following split decoding is mandatory due to 0N/A // Integer.decode() behavior which won't decode 0N/A // hexadecimal values higher than #7FFFFFFF. 0N/A // Thus, when an alpha channel is detected, it is 0N/A // decoded separately from the RGB channels. 0N/A // Type of the value: 0=idref, 1=boolean, 2=dimension, 3=insets, 0N/A // 4=integer,5=string 0N/A "idref, boolean, dimension, insets or integer");
0N/A case 2:
// dimension 0N/A "regular expression");
0N/A ": sourceInsets must be top left bottom right");
0N/A ": destinationInsets must be top left bottom right");
0N/A ": you must specify an idref");
0N/A "property: you must specify sourceInsets");
0N/A "destinationInsets, paintCenter and stretch " +
0N/A " are not legal when center is true");
0N/A // Not in an inputmap, bail. 0N/A "bindKey: you must supply a key and action");
827N/A // SAX methods, these forward to the DocumentHandler if we don't know 0N/A // the element name. 0N/A * ImageIcon that lazily loads the image until needed.