com::mxgraph::mxSaxOutputHandler Class Reference

List of all members.

Public Member Functions

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

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.
Dictionary< string,
ElementHandler > 
handlers = new Dictionary<string, ElementHandler>()
 Holds the handlers for specific XML nodes.

Properties

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

Constructor & Destructor Documentation

com::mxgraph::mxSaxOutputHandler::mxSaxOutputHandler ( mxICanvas2D  canvas  )  [inline]

Constructs a new sax output handler for the given canvas.


Member Function Documentation

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

Defines the requirements for an object that parses a node.

void com::mxgraph::mxSaxOutputHandler::InitHandlers (  )  [inline, protected]
void com::mxgraph::mxSaxOutputHandler::ParseElement ( string  tagName,
Dictionary< string, string >  atts 
) [inline]

Parses the given element and paints it onto the canvas.

Parameters:
tagName Name of the node to be parsed.
attrs Attributes of the node to be parsed.
void com::mxgraph::mxSaxOutputHandler::Read ( XmlReader  reader  )  [inline]

Reads the given display XML data and parses all elements.

Parameters:
reader Reader that represents the display XML data.

Member Data Documentation

Holds the current canvas.

Dictionary<string, ElementHandler> com::mxgraph::mxSaxOutputHandler::handlers = new Dictionary<string, ElementHandler>() [protected]

Holds the handlers for specific XML nodes.


Property Documentation

mxICanvas2D com::mxgraph::mxSaxOutputHandler::Canvas [get, set]

Sets or returns the current canvas.


The documentation for this class was generated from the following file:
Generated on Mon Oct 29 20:11:49 2012 for mxGraph by  doxygen 1.6.3