oracle.cabo.image.xml.parse
Class ColorizedIconParser
java.lang.Object
|
+--oracle.cabo.share.xml.BaseNodeParser
|
+--oracle.cabo.image.xml.parse.BaseImageProviderRequestParser
|
+--oracle.cabo.image.xml.parse.ColorizedIconParser
- All Implemented Interfaces:
- NodeParser
- public class ColorizedIconParser
- extends BaseImageProviderRequestParser
NodeParser for colorizedIcon elements
Method Summary |
protected java.lang.Object |
getColorKey(java.lang.String namespaceURI,
java.lang.String localName)
Override of BaseImageProviderRequestParser.getColorKey() for
borderColor. |
protected boolean |
isColorElement(java.lang.String namespaceURI,
java.lang.String localName)
Tests whether the specified element is a color. |
void |
startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Implementation of NodeParser.startElement |
Methods inherited from class oracle.cabo.image.xml.parse.BaseImageProviderRequestParser |
addCompletedChild, endElement, getDirection, getEncodingType, getFontKey, getHeight, getWidth, isDisabled, isFontElement, isTextAntaliased, setProperty, startChildElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorizedIconParser
public ColorizedIconParser()
startElement
public void startElement(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXParseException
- Description copied from class:
BaseImageProviderRequestParser
- Implementation of NodeParser.startElement
- Overrides:
startElement
in class BaseImageProviderRequestParser
- Following copied from interface:
oracle.cabo.share.xml.NodeParser
- Parameters:
context
- the parsing contextnamespaceURI
- the namespace of the elementlocalName
- the local name of the elementattrs
- the attributes attached to the element
isColorElement
protected boolean isColorElement(java.lang.String namespaceURI,
java.lang.String localName)
- Description copied from class:
BaseImageProviderRequestParser
- Tests whether the specified element is a color.
Subclasses should override this method to indicate that
a specified element should be parsed to a Color. getColorKey()
should also be overridden to return the ImageProviderRequest
property key to use for any color element.
- Overrides:
isColorElement
in class BaseImageProviderRequestParser
getColorKey
protected java.lang.Object getColorKey(java.lang.String namespaceURI,
java.lang.String localName)
- Override of BaseImageProviderRequestParser.getColorKey() for
borderColor.
- Overrides:
getColorKey
in class BaseImageProviderRequestParser