org.openstreetmap.josm.gui.mappaint.xml
Class XmlStyleSourceHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.openstreetmap.josm.gui.mappaint.xml.XmlStyleSourceHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class XmlStyleSourceHandler
- extends org.xml.sax.helpers.DefaultHandler
|
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
(package 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)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inDoc
private boolean inDoc
inRule
private boolean inRule
inCondition
private boolean inCondition
inLine
private boolean inLine
inLineMod
private boolean inLineMod
inIcon
private boolean inIcon
inArea
private boolean inArea
inScaleMax
private boolean inScaleMax
inScaleMin
private boolean inScaleMin
hadLine
private boolean hadLine
hadLineMod
private boolean hadLineMod
hadIcon
private boolean hadIcon
hadArea
private boolean hadArea
rule
private XmlStyleSourceHandler.RuleElem rule
style
XmlStyleSource style
XmlStyleSourceHandler
public XmlStyleSourceHandler(XmlStyleSource style)
convertColor
java.awt.Color convertColor(java.lang.String colString)
startDocument
public void startDocument()
- Specified by:
startDocument in interface org.xml.sax.ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
endDocument
public void endDocument()
- Specified by:
endDocument in interface org.xml.sax.ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
error
private void error(java.lang.String message)
startElementLine
private void startElementLine(java.lang.String qName,
org.xml.sax.Attributes atts,
LinePrototype line)
startElementLinemod
private void startElementLinemod(java.lang.String qName,
org.xml.sax.Attributes atts,
LinemodPrototype line)
startElement
public void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
- Specified by:
startElement in interface org.xml.sax.ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
endElement
public void endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
- Specified by:
endElement in interface org.xml.sax.ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters in interface org.xml.sax.ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
JOSM