public class mxSaxOutputHandler extends DefaultHandler
Modifier and Type | Class and Description |
---|---|
protected static interface |
mxSaxOutputHandler.IElementHandler |
Modifier and Type | Field and Description |
---|---|
protected mxICanvas2D |
canvas |
protected Map<String,mxSaxOutputHandler.IElementHandler> |
handlers |
Constructor and Description |
---|
mxSaxOutputHandler(mxICanvas2D canvas) |
Modifier and Type | Method and Description |
---|---|
mxICanvas2D |
getCanvas()
Returns the canvas for rendering.
|
protected String |
getValue(Attributes atts,
String name,
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(String uri,
String localName,
String qName,
Attributes atts) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected mxICanvas2D canvas
protected transient Map<String,mxSaxOutputHandler.IElementHandler> handlers
public mxSaxOutputHandler(mxICanvas2D canvas)
public void setCanvas(mxICanvas2D value)
public mxICanvas2D getCanvas()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
protected void initHandlers()
protected String getValue(Attributes atts, String name, String defaultValue)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.