mxGraph
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
com.mxgraph.mxSaxOutputHandler Class Reference

Public Member Functions

delegate void ElementHandler (Dictionary< string, string > atts)
 Defines the requirements for an object that parses a node. More...
 
 mxSaxOutputHandler (mxICanvas2D canvas)
 Constructs a new sax output handler for the given canvas. More...
 
void Read (XmlReader reader)
 Reads the given display XML data and parses all elements. More...
 
void ParseElement (string tagName, Dictionary< string, string > atts)
 Parses the given element and paints it onto the canvas. More...
 

Protected Member Functions

string GetString (Dictionary< string, string > atts, string key)
 
string GetString (Dictionary< string, string > atts, string key, string defaultValue)
 
double GetDouble (Dictionary< string, string > atts, string key)
 
double GetDouble (Dictionary< string, string > atts, string key, double defaultValue)
 
int GetInt (Dictionary< string, string > atts, string key)
 
int GetInt (Dictionary< string, string > atts, string key, int defaultValue)
 
bool IsTrue (Dictionary< string, string > atts, string key)
 
bool IsTrue (Dictionary< string, string > atts, string key, bool defaultValue)
 
void InitHandlers ()
 

Protected Attributes

mxICanvas2D canvas
 Holds the current canvas. More...
 
Dictionary< string, ElementHandlerhandlers = new Dictionary<string, ElementHandler>()
 Holds the handlers for specific XML nodes. More...
 

Properties

mxICanvas2D Canvas [get, set]
 Sets or returns the current canvas. More...
 

Constructor & Destructor Documentation

◆ mxSaxOutputHandler()

com.mxgraph.mxSaxOutputHandler.mxSaxOutputHandler ( mxICanvas2D  canvas)
inline

Constructs a new sax output handler for the given canvas.

Member Function Documentation

◆ ElementHandler()

delegate void com.mxgraph.mxSaxOutputHandler.ElementHandler ( Dictionary< string, string >  atts)

Defines the requirements for an object that parses a node.

◆ InitHandlers()

void com.mxgraph.mxSaxOutputHandler.InitHandlers ( )
inlineprotected

◆ ParseElement()

void com.mxgraph.mxSaxOutputHandler.ParseElement ( string  tagName,
Dictionary< string, string >  atts 
)
inline

Parses the given element and paints it onto the canvas.

Parameters
tagNameName of the node to be parsed.
attrsAttributes of the node to be parsed.

◆ Read()

void com.mxgraph.mxSaxOutputHandler.Read ( XmlReader  reader)
inline

Reads the given display XML data and parses all elements.

Parameters
readerReader that represents the display XML data.

Member Data Documentation

◆ canvas

mxICanvas2D com.mxgraph.mxSaxOutputHandler.canvas
protected

Holds the current canvas.

◆ handlers

Dictionary<string, ElementHandler> com.mxgraph.mxSaxOutputHandler.handlers = new Dictionary<string, ElementHandler>()
protected

Holds the handlers for specific XML nodes.

Property Documentation

◆ Canvas

mxICanvas2D com.mxgraph.mxSaxOutputHandler.Canvas
getset

Sets or returns the current canvas.


The documentation for this class was generated from the following file: