public class XmlStyleSourceHandler extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
XmlStyleSourceHandler.RuleElem |
Modifier and Type | Field and Description |
---|---|
private boolean |
hadArea |
private boolean |
hadIcon |
private boolean |
hadLine |
private boolean |
hadLineMod |
private boolean |
inArea |
private boolean |
inCondition |
private boolean |
inDoc |
private boolean |
inIcon |
private boolean |
inLine |
private boolean |
inLineMod |
private boolean |
inRule |
private boolean |
inScaleMax |
private boolean |
inScaleMin |
private XmlStyleSourceHandler.RuleElem |
rule |
private XmlStyleSource |
style |
Constructor and Description |
---|
XmlStyleSourceHandler(XmlStyleSource style) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
private java.awt.Color |
convertColor(java.lang.String colString) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName) |
private void |
error(java.lang.String message) |
void |
startDocument() |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts) |
private void |
startElementLine(java.lang.String qName,
org.xml.sax.Attributes atts,
LinePrototype line) |
private void |
startElementLinemod(java.lang.String qName,
org.xml.sax.Attributes atts,
LinemodPrototype line) |
private boolean inDoc
private boolean inRule
private boolean inCondition
private boolean inLine
private boolean inLineMod
private boolean inIcon
private boolean inArea
private boolean inScaleMax
private boolean inScaleMin
private boolean hadLine
private boolean hadLineMod
private boolean hadIcon
private boolean hadArea
private XmlStyleSourceHandler.RuleElem rule
private XmlStyleSource style
public XmlStyleSourceHandler(XmlStyleSource style)
private java.awt.Color convertColor(java.lang.String colString)
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
private void error(java.lang.String message)
private void startElementLine(java.lang.String qName, org.xml.sax.Attributes atts, LinePrototype line)
private void startElementLinemod(java.lang.String qName, org.xml.sax.Attributes atts, LinemodPrototype line)
public void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler