mxGraph
Public Member Functions | Protected Member Functions | Protected Attributes | Properties
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

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:
tagNameName of the node to be parsed.
attrsAttributes 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:
readerReader 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

Sets or returns the current canvas.


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