public class mxSaxOutputHandler
extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Class and Description |
---|---|
protected static interface |
mxSaxOutputHandler.IElementHandler |
Modifier and Type | Field and Description |
---|---|
protected mxICanvas2D |
canvas |
protected java.util.Map<java.lang.String,mxSaxOutputHandler.IElementHandler> |
handlers |
Constructor and Description |
---|
mxSaxOutputHandler(mxICanvas2D canvas) |
Modifier and Type | Method and Description |
---|---|
mxICanvas2D |
getCanvas()
Returns the canvas for rendering.
|
protected java.lang.String |
getValue(org.xml.sax.Attributes atts,
java.lang.String name,
java.lang.String defaultValue)
Returns the given attribute value or an empty string.
|
protected void |
initHandlers() |
void |
setCanvas(mxICanvas2D value)
Sets the canvas for rendering.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected mxICanvas2D canvas
protected transient java.util.Map<java.lang.String,mxSaxOutputHandler.IElementHandler> handlers
public mxSaxOutputHandler(mxICanvas2D canvas)
public void setCanvas(mxICanvas2D value)
public mxICanvas2D getCanvas()
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected void initHandlers()
protected java.lang.String getValue(org.xml.sax.Attributes atts, java.lang.String name, java.lang.String defaultValue)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.