| Modifier and Type | Class and Description |
|---|---|
| private static class | SynthParser.
ImageIcon that lazily loads the image until needed. |
| Modifier and Type | Field and Description |
|---|---|
| private Class | _classResourceBase
Based class used to resolve paths. |
| private List | _colorTypes
List of ColorTypes. |
| private Map | _defaultsMap
Default properties are placed here. |
| private int | _depth
Indicates the depth of how many elements we've encountered but don't understand. |
| private DefaultSynthStyleFactory | _factory
Factory that new styles are added to. |
| private DocumentHandler | _handler
Lazily created, used for anything we don't understand. |
| private List | _inputMapBindings
Bindings for the current InputMap |
| private String | _inputMapID
ID for the input map. |
| private Map | _mapping
Object references outside the scope of persistence. |
| private ParsedSynthStyle. | _stateInfo
Current state info. |
| private List | _stateInfos
Array of state infos for the current style.</style> |
| private List | _statePainters
List of SynthStyle.Painters that will be applied to the current state. |
| private ParsedSynthStyle | _style
Current style. |
| private List | _stylePainters
List of SynthStyle.Painters that will be applied to the current style. |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | addPainterOrMerge(List<ParsedSynthStyle.
|
| public void | characters(char[] ch, int start, int length)
Overrides org. Implements org. Receive notification of character data inside an element. |
| private Object | |
| public void | endDocument()
Overrides org. Implements org. Receive notification of the end of the document. |
| public void | endElement(String uri, String local, String name)
Overrides org. Implements org. Receive notification of the end of an element. |
| private void | |
| private void | |
| private void | |
| public void | error(SAXParseException e)
Overrides org. Implements org. Receive notification of a recoverable parser error. |
| public void | fatalError(SAXParseException e)
Overrides org. Implements org. Report a fatal XML parsing error. |
| private DocumentHandler | |
| private URL | |
| public void | ignorableWhitespace(char[] ch, int start, int length)
Overrides org. Implements org. Receive notification of ignorable whitespace in element content. |
| private boolean | |
| private Object | |
| private int | nextInt(StringTokenizer tok, String errorMsg)
Convenience method to return the next int, or throw if there are no more valid ints. |
| public void | notationDecl(String name, String publicId, String systemId)
Overrides org. Implements org. Receive notification of a notation declaration. |
| public void | parse(InputStream
XML document containing the styles to read inputStream, DefaultSynthStyleFactory DefaultSynthStyleFactory that new styles are added to factory, Class<?> the Class used to resolve any resources, such as Images classResourceBase, Map<String, Object> Map that UIDefaults properties are placed in defaultsMap)Parses a set of styles from |
| private Insets | |
| public void | processingInstruction(String target, String data)
Overrides org. Implements org. Receive notification of a processing instruction. |
| private void | |
| private void | |
| public InputSource | resolveEntity(String publicId, String systemId)
Overrides org. Implements org. Resolve an external entity. |
| public void | setDocumentLocator(Locator locator)
Overrides org. Implements org. Receive a Locator object for document events. |
| private void | |
| private void | |
| private void | |
| public void | startDocument()
Overrides org. Implements org. Receive notification of the beginning of the document. |
| public void | startElement(String uri, String local, String name, Attributes attributes)
Overrides org. Implements org. Receive notification of the start of an element. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | unparsedEntityDecl(String name, String publicId, String systemId, String notationName)
Overrides org. Implements org. Receive notification of an unparsed entity declaration. |
| public void | warning(SAXParseException e)
Overrides org. Implements org. Receive notification of a parser warning. |
| _classResourceBase | back to summary |
|---|---|
| private Class<?> _classResourceBase Based class used to resolve paths. | |
| _colorTypes | back to summary |
|---|---|
| private List<ColorType> _colorTypes List of ColorTypes. This is populated in startColorType. | |
| _defaultsMap | back to summary |
|---|---|
| private Map<String, Object> _defaultsMap Default properties are placed here. | |
| _depth | back to summary |
|---|---|
| private int _depth Indicates the depth of how many elements we've encountered but don't understand. This is used when forwarding to beans persistence to know when we should stop forwarding. | |
| _factory | back to summary |
|---|---|
| private DefaultSynthStyleFactory _factory Factory that new styles are added to. | |
| _handler | back to summary |
|---|---|
| private DocumentHandler _handler Lazily created, used for anything we don't understand. | |
| _inputMapBindings | back to summary |
|---|---|
| private List<String> _inputMapBindings Bindings for the current InputMap | |
| _inputMapID | back to summary |
|---|---|
| private String _inputMapID ID for the input map. This is cached as the InputMap is created AFTER the inputMapProperty has ended. | |
| _mapping | back to summary |
|---|---|
| private Map<String, Object> _mapping Object references outside the scope of persistence. | |
| _stateInfo | back to summary |
|---|---|
| private ParsedSynthStyle. Current state info. | |
| _stateInfos | back to summary |
|---|---|
| private List<ParsedSynthStyle. Array of state infos for the current style. These are pushed to the style when is received. | |
| _statePainters | back to summary |
|---|---|
| private List<ParsedSynthStyle. List of SynthStyle.Painters that will be applied to the current state. | |
| _style | back to summary |
|---|---|
| private ParsedSynthStyle _style Current style. | |
| _stylePainters | back to summary |
|---|---|
| private List<ParsedSynthStyle. List of SynthStyle.Painters that will be applied to the current style. | |
| ATTRIBUTE_ACTION | back to summary |
|---|---|
| private static final String ATTRIBUTE_ACTION | |
| ATTRIBUTE_BOTTOM | back to summary |
|---|---|
| private static final String ATTRIBUTE_BOTTOM | |
| ATTRIBUTE_CENTER | back to summary |
|---|---|
| private static final String ATTRIBUTE_CENTER | |
| ATTRIBUTE_CLONE | back to summary |
|---|---|
| private static final String ATTRIBUTE_CLONE | |
| ATTRIBUTE_DEST_INSETS | back to summary |
|---|---|
| private static final String ATTRIBUTE_DEST_INSETS | |
| ATTRIBUTE_DIRECTION | back to summary |
|---|---|
| private static final String ATTRIBUTE_DIRECTION | |
| ATTRIBUTE_ID | back to summary |
|---|---|
| private static final String ATTRIBUTE_ID | |
| ATTRIBUTE_IDREF | back to summary |
|---|---|
| private static final String ATTRIBUTE_IDREF | |
| ATTRIBUTE_KEY | back to summary |
|---|---|
| private static final String ATTRIBUTE_KEY | |
| ATTRIBUTE_LEFT | back to summary |
|---|---|
| private static final String ATTRIBUTE_LEFT | |
| ATTRIBUTE_METHOD | back to summary |
|---|---|
| private static final String ATTRIBUTE_METHOD | |
| ATTRIBUTE_NAME | back to summary |
|---|---|
| private static final String ATTRIBUTE_NAME | |
| ATTRIBUTE_PAINT_CENTER | back to summary |
|---|---|
| private static final String ATTRIBUTE_PAINT_CENTER | |
| ATTRIBUTE_PATH | back to summary |
|---|---|
| private static final String ATTRIBUTE_PATH | |
| ATTRIBUTE_RIGHT | back to summary |
|---|---|
| private static final String ATTRIBUTE_RIGHT | |
| ATTRIBUTE_SIZE | back to summary |
|---|---|
| private static final String ATTRIBUTE_SIZE | |
| ATTRIBUTE_SOURCE_INSETS | back to summary |
|---|---|
| private static final String ATTRIBUTE_SOURCE_INSETS | |
| ATTRIBUTE_STRETCH | back to summary |
|---|---|
| private static final String ATTRIBUTE_STRETCH | |
| ATTRIBUTE_STYLE | back to summary |
|---|---|
| private static final String ATTRIBUTE_STYLE | |
| ATTRIBUTE_TOP | back to summary |
|---|---|
| private static final String ATTRIBUTE_TOP | |
| ATTRIBUTE_TYPE | back to summary |
|---|---|
| private static final String ATTRIBUTE_TYPE | |
| ATTRIBUTE_VALUE | back to summary |
|---|---|
| private static final String ATTRIBUTE_VALUE | |
| ELEMENT_BIND | back to summary |
|---|---|
| private static final String ELEMENT_BIND | |
| ELEMENT_BIND_KEY | back to summary |
|---|---|
| private static final String ELEMENT_BIND_KEY | |
| ELEMENT_COLOR | back to summary |
|---|---|
| private static final String ELEMENT_COLOR | |
| ELEMENT_DEFAULTS_PROPERTY | back to summary |
|---|---|
| private static final String ELEMENT_DEFAULTS_PROPERTY | |
| ELEMENT_FONT | back to summary |
|---|---|
| private static final String ELEMENT_FONT | |
| ELEMENT_IMAGE_ICON | back to summary |
|---|---|
| private static final String ELEMENT_IMAGE_ICON | |
| ELEMENT_IMAGE_PAINTER | back to summary |
|---|---|
| private static final String ELEMENT_IMAGE_PAINTER | |
| ELEMENT_INPUT_MAP | back to summary |
|---|---|
| private static final String ELEMENT_INPUT_MAP | |
| ELEMENT_INSETS | back to summary |
|---|---|
| private static final String ELEMENT_INSETS | |
| ELEMENT_OPAQUE | back to summary |
|---|---|
| private static final String ELEMENT_OPAQUE | |
| ELEMENT_PAINTER | back to summary |
|---|---|
| private static final String ELEMENT_PAINTER | |
| ELEMENT_PROPERTY | back to summary |
|---|---|
| private static final String ELEMENT_PROPERTY | |
| ELEMENT_STATE | back to summary |
|---|---|
| private static final String ELEMENT_STATE | |
| ELEMENT_STYLE | back to summary |
|---|---|
| private static final String ELEMENT_STYLE | |
| ELEMENT_SYNTH | back to summary |
|---|---|
| private static final String ELEMENT_SYNTH | |
| ELEMENT_SYNTH_GRAPHICS | back to summary |
|---|---|
| private static final String ELEMENT_SYNTH_GRAPHICS | |
| SynthParser | back to summary |
|---|---|
| pack-priv SynthParser() | |
| addPainterOrMerge | back to summary |
|---|---|
| private void addPainterOrMerge(List<ParsedSynthStyle. | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int start, int length) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of character data inside an element. By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).
| |
| checkCast | back to summary |
|---|---|
| private Object checkCast(Object value, Class<?> type) throws SAXException If | |
| endDocument | back to summary |
|---|---|
| public void endDocument() throws SAXException Overrides org. Implements org. Doc from org. Receive notification of the end of the document. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of a document (such as finalising a tree or closing an output file).
| |
| endElement | back to summary |
|---|---|
| public void endElement(String uri, String local, String name) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of the end of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
| |
| endInputMap | back to summary |
|---|---|
| private void endInputMap() throws SAXException | |
| endState | back to summary |
|---|---|
| private void endState() | |
| endStyle | back to summary |
|---|---|
| private void endStyle() | |
| error | back to summary |
|---|---|
| public void error(SAXParseException e) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a recoverable parser error. The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.
| |
| fatalError | back to summary |
|---|---|
| public void fatalError(SAXParseException e) throws SAXException Overrides org. Implements org. Doc from org. Report a fatal XML parsing error. The default implementation throws a SAXParseException. Application writers may override this method in a subclass if they need to take specific actions for each fatal error (such as collecting all of the errors into a single report): in any case, the application must stop all regular processing when this method is invoked, since the document is no longer reliable, and the parser may no longer report parsing events.
| |
| getHandler | back to summary |
|---|---|
| private DocumentHandler getHandler() Handles beans persistence. | |
| getResource | back to summary |
|---|---|
| private URL getResource(String path) Returns the path to a resource. | |
| ignorableWhitespace | back to summary |
|---|---|
| public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of ignorable whitespace in element content. By default, do nothing. Application writers may override this method to take specific actions for each chunk of ignorable whitespace (such as adding data to a node or buffer, or printing it to a file).
| |
| isForwarding | back to summary |
|---|---|
| private boolean isForwarding() Returns true if we are forwarding to persistence. | |
| lookup | back to summary |
|---|---|
| private Object lookup(String key, Class<?> type) throws SAXException Returns an object created with id=key. If the object is not of type type, this will throw an exception. | |
| nextInt | back to summary |
|---|---|
| private int nextInt(StringTokenizer tok, String errorMsg) throws SAXException Convenience method to return the next int, or throw if there are no more valid ints. | |
| notationDecl | back to summary |
|---|---|
| public void notationDecl(String name, String publicId, String systemId) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a notation declaration. By default, do nothing. Application writers may override this method in a subclass if they wish to keep track of the notations declared in a document.
| |
| parse | back to summary |
|---|---|
| public void parse(InputStream inputStream, DefaultSynthStyleFactory factory, Class<?> classResourceBase, Map<String, Object> defaultsMap) throws ParseException, IllegalArgumentException Parses a set of styles from
| |
| parseInsets | back to summary |
|---|---|
| private Insets parseInsets(String insets, String errorMsg) throws SAXException Convenience method to return an Insets object. | |
| processingInstruction | back to summary |
|---|---|
| public void processingInstruction(String target, String data) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a processing instruction. By default, do nothing. Application writers may override this method in a subclass to take specific actions for each processing instruction, such as setting status variables or invoking other methods.
| |
| register | back to summary |
|---|---|
| private void register(String key, Object value) throws SAXException Registers an object by name. This will throw an exception if an object has already been registered under the given name. | |
| reset | back to summary |
|---|---|
| private void reset() Clears our internal state. | |
| resolveEntity | back to summary |
|---|---|
| public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException Overrides org. Implements org. Doc from org. Resolve an external entity. Always return null, so that the parser will use the system identifier provided in the XML document. This method implements the SAX default behaviour: application writers can override it in a subclass to do special translations such as catalog lookups or URI redirection.
| |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator locator) Overrides org. Implements org. Doc from org. Receive a Locator object for document events. By default, do nothing. Application writers may override this method in a subclass if they wish to store the locator for use with other document events. | |
| startBind | back to summary |
|---|---|
| private void startBind(Attributes attributes) throws SAXException | |
| startBindKey | back to summary |
|---|---|
| private void startBindKey(Attributes attributes) throws SAXException | |
| startColor | back to summary |
|---|---|
| private void startColor(Attributes attributes) throws SAXException | |
| startDocument | back to summary |
|---|---|
| public void startDocument() throws SAXException Overrides org. Implements org. Doc from org. Receive notification of the beginning of the document. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).
| |
| startElement | back to summary |
|---|---|
| public void startElement(String uri, String local, String name, Attributes attributes) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of the start of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
| |
| startFont | back to summary |
|---|---|
| private void startFont(Attributes attributes) throws SAXException | |
| startGraphics | back to summary |
|---|---|
| private void startGraphics(Attributes attributes) throws SAXException | |
| startImageIcon | back to summary |
|---|---|
| private void startImageIcon(Attributes attributes) throws SAXException | |
| startInputMap | back to summary |
|---|---|
| private void startInputMap(Attributes attributes) throws SAXException | |
| startInsets | back to summary |
|---|---|
| private void startInsets(Attributes attributes) throws SAXException | |
| startOpaque | back to summary |
|---|---|
| private void startOpaque(Attributes attributes) | |
| startPainter | back to summary |
|---|---|
| private void startPainter(Attributes attributes, String type) throws SAXException | |
| startProperty | back to summary |
|---|---|
| private void startProperty(Attributes attributes, Object property) throws SAXException | |
| startState | back to summary |
|---|---|
| private void startState(Attributes attributes) throws SAXException | |
| startStyle | back to summary |
|---|---|
| private void startStyle(Attributes attributes) throws SAXException | |
| unparsedEntityDecl | back to summary |
|---|---|
| public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of an unparsed entity declaration. By default, do nothing. Application writers may override this method in a subclass to keep track of the unparsed entities declared in a document.
| |
| warning | back to summary |
|---|---|
| public void warning(SAXParseException e) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of a parser warning. The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each warning, such as inserting the message in a log file or printing it to the console.
| |
| Modifier and Type | Field and Description |
|---|---|
| private URL |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getIconHeight()
Overrides javax. Implements javax. Gets the height of the icon. |
| public int | getIconWidth()
Overrides javax. Implements javax. Gets the width of the icon. |
| public Image | |
| public void | paintIcon(Component c, Graphics g, int x, int y)
Overrides javax. Implements javax. Paints the icon. |
| location | back to summary |
|---|---|
| private URL location | |
| LazyImageIcon | back to summary |
|---|---|
| public LazyImageIcon(URL location) | |
| getIconHeight | back to summary |
|---|---|
| public int getIconHeight() Overrides javax. Implements javax. Doc from javax. Gets the height of the icon. | |
| getIconWidth | back to summary |
|---|---|
| public int getIconWidth() Overrides javax. Implements javax. Doc from javax. Gets the width of the icon. | |
| getImage | back to summary |
|---|---|
| public Image getImage() Overrides javax. Doc from javax. Returns this icon's | |
| paintIcon | back to summary |
|---|---|
| public void paintIcon(Component c, Graphics g, int x, int y) Overrides javax. Implements javax. Doc from javax. Paints the icon.
The top-left corner of the icon is drawn at
the point ( | |